]> git.baikalelectronics.ru Git - kernel.git/commit
ide: fix PCI refcounting
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Tue, 11 Sep 2007 20:28:34 +0000 (22:28 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 11 Sep 2007 20:28:34 +0000 (22:28 +0200)
commit2c4d4c2782bb48ca4d2ec15c6ab0bbdc426d8748
treeb6d4d6d7af1ce177f61e93e0fa9878c1a3199a44
parentacec3ba3e892f4349dc23c67ab20cd6bf08a0c3a
ide: fix PCI refcounting

The IDE core never marked the PCI IDE devices as being in use after succesfull
driver probe call (the devices were marked in use only while being probed), and
so was susceptible to issues caused by unsolicited PCI hotplug device removal.
So, add pci_dev_get() call to ide_scan_pcidev() and convert this function to
the kernel style, also dropping a bunch of useless curly braces from its caller,
ide_scan_pcibus() and somewhat beautifying printk() call there, while at it...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/setup-pci.c