]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
pdc202xx_new: switch to using pci_get_slot() (take 2)
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Thu, 11 Oct 2007 21:53:58 +0000 (23:53 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Thu, 11 Oct 2007 21:53:58 +0000 (23:53 +0200)
commit07047935795917f21dc532c0c17811213cbc2e97
treec2f6ce294934eb5c34b645679073a127a1c46f88
parent5e32132befa5d2cefadf3141fee0bbb40cd11f0e
pdc202xx_new: switch to using pci_get_slot() (take 2)

Switch to using pci_get_slot() in init_setup_pdc20270() to get to the mate chip
behind DC21150 bridge as there's no need for the driver itself to walk the list
of the PCI devices (and the driver didn't check the bus # of the found device).
While at it, make it emit warning about IRQ # being fixed up (just like hpt366.c
does) and "beautify" this whole function as well as init_setup_pdc20276()...

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