diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2007-09-11 22:28:34 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-09-11 22:28:34 +0200 |
commit | 0505b55fb51fa289027f33ae793995c191277536 (patch) | |
tree | b6d4d6d7af1ce177f61e93e0fa9878c1a3199a44 /lib/bust_spinlocks.c | |
parent | dc4b6fd620aec395048b2877daca87ba7bfcd5e0 (diff) |
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>
Diffstat (limited to 'lib/bust_spinlocks.c')
0 files changed, 0 insertions, 0 deletions