[lkml]   [2010]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] pch_phub: add new device ML7213
    On Wed, Dec 22, 2010 at 01:33:14PM +0900, Tomoya MORINAGA wrote:
    > @@ -688,6 +720,7 @@ static int pch_phub_resume(struct pci_dev *pdev)
    > static struct pci_device_id pch_phub_pcidev_id[] = {

    Put the device type here in the device table, so you don't have to check
    for it again in the probe function. That way you can save some code and
    keep things simpler and more obvious in the future when adding new
    device ids, that you also have to pick the type for it.


    greg k-h

     \ /
      Last update: 2010-12-22 05:45    [W:0.020 / U:55.404 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site