]> git.baikalelectronics.ru Git - kernel.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)
commit1cf1750e1d103b89efc84f4524c9de184bb6e592
treec2f6ce294934eb5c34b645679073a127a1c46f88
parenta70985f83c12e9e0e230d5c6b3a60dbc493241ed
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