mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
PCI: Remove users of pci_enable_device_bars()
This patch converts users of pci_enable_device_bars() to the new
pci_enable_device_{io,mem} interface.
The new API fits nicely, except maybe for the QLA case where a bit of
code re-organization might be a good idea but I prefer sticking to the
simple patch as I don't have hardware to test on.
I'll also need some feedback on the cs5520 change.
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
b718989da7
commit
0948391641
7 changed files with 33 additions and 12 deletions
|
|
@ -492,7 +492,7 @@ static __init int scx200_create_pci(const char *text, struct pci_dev *pdev,
|
|||
iface->pdev = pdev;
|
||||
iface->bar = bar;
|
||||
|
||||
rc = pci_enable_device_bars(iface->pdev, 1 << iface->bar);
|
||||
rc = pci_enable_device_io(iface->pdev);
|
||||
if (rc)
|
||||
goto errout_free;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue