diff options
| author | Steve French <sfrench@us.ibm.com> | 2007-11-25 04:53:27 -0500 | 
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2007-11-25 04:53:27 -0500 | 
| commit | 058250a0d5886b4d96a195ecc7e3a75e2df5e4b1 (patch) | |
| tree | fb67e8f5258c6aa11d4e8c39650e23de7556b38d /drivers/misc/ioc4.c | |
| parent | cea218054ad277d6c126890213afde07b4eb1602 (diff) | |
| parent | 2ffbb8377c7a0713baf6644e285adc27a5654582 (diff) | |
Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/misc/ioc4.c')
| -rw-r--r-- | drivers/misc/ioc4.c | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/drivers/misc/ioc4.c b/drivers/misc/ioc4.c index 6a5a05d1f392..05172d2613d6 100644 --- a/drivers/misc/ioc4.c +++ b/drivers/misc/ioc4.c | |||
| @@ -244,10 +244,11 @@ ioc4_variant(struct ioc4_driver_data *idd) | |||
| 244 | idd->idd_pdev->bus->number == pdev->bus->number && | 244 | idd->idd_pdev->bus->number == pdev->bus->number && | 
| 245 | 3 == PCI_SLOT(pdev->devfn)) | 245 | 3 == PCI_SLOT(pdev->devfn)) | 
| 246 | found = 1; | 246 | found = 1; | 
| 247 | pci_dev_put(pdev); | ||
| 248 | } while (pdev && !found); | 247 | } while (pdev && !found); | 
| 249 | if (NULL != pdev) | 248 | if (NULL != pdev) { | 
| 249 | pci_dev_put(pdev); | ||
| 250 | return IOC4_VARIANT_IO9; | 250 | return IOC4_VARIANT_IO9; | 
| 251 | } | ||
| 251 | 252 | ||
| 252 | /* IO10: Look for a Vitesse VSC 7174 at the same bus and slot 3. */ | 253 | /* IO10: Look for a Vitesse VSC 7174 at the same bus and slot 3. */ | 
| 253 | pdev = NULL; | 254 | pdev = NULL; | 
| @@ -258,10 +259,11 @@ ioc4_variant(struct ioc4_driver_data *idd) | |||
| 258 | idd->idd_pdev->bus->number == pdev->bus->number && | 259 | idd->idd_pdev->bus->number == pdev->bus->number && | 
| 259 | 3 == PCI_SLOT(pdev->devfn)) | 260 | 3 == PCI_SLOT(pdev->devfn)) | 
| 260 | found = 1; | 261 | found = 1; | 
| 261 | pci_dev_put(pdev); | ||
| 262 | } while (pdev && !found); | 262 | } while (pdev && !found); | 
| 263 | if (NULL != pdev) | 263 | if (NULL != pdev) { | 
| 264 | pci_dev_put(pdev); | ||
| 264 | return IOC4_VARIANT_IO10; | 265 | return IOC4_VARIANT_IO10; | 
| 266 | } | ||
| 265 | 267 | ||
| 266 | /* PCI-RT: No SCSI/SATA controller will be present */ | 268 | /* PCI-RT: No SCSI/SATA controller will be present */ | 
| 267 | return IOC4_VARIANT_PCI_RT; | 269 | return IOC4_VARIANT_PCI_RT; | 
