diff options
author | Olaf Hering <olaf@aepfle.de> | 2008-01-21 04:39:30 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-25 06:52:55 -0500 |
commit | 092ca5bd61da6344f3b249754b337f2d48dfe08d (patch) | |
tree | defc2d0eb23adcb99e063e76a22b112817cb5d3b | |
parent | 3ca6644e5cc6ee7700b158fd5b4e8c48899118c6 (diff) |
[POWERPC] Revert chrp_pci_fixup_vt8231_ata devinit to fix libata on pegasos
Commit 6d98bda79bea0e1be26c0767d0e9923ad3b72f2e changed the init order
for chrp_pci_fixup_vt8231_ata().
It can not work anymore because either the irq is not yet set to 14 or
pci_get_device() returns nothing. At least the printk() in
chrp_pci_fixup_vt8231_ata() does not trigger anymore.
pata_via works again on Pegasos with the change below.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/platforms/chrp/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/chrp/pci.c b/arch/powerpc/platforms/chrp/pci.c index d51f83aeef7f..609c46db4a1b 100644 --- a/arch/powerpc/platforms/chrp/pci.c +++ b/arch/powerpc/platforms/chrp/pci.c | |||
@@ -354,7 +354,7 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_WINBOND, PCI_DEVICE_ID_WINBOND_82C105, | |||
354 | * mode as well. The same fixup must be done to the class-code property in | 354 | * mode as well. The same fixup must be done to the class-code property in |
355 | * the IDE node /pci@80000000/ide@C,1 | 355 | * the IDE node /pci@80000000/ide@C,1 |
356 | */ | 356 | */ |
357 | static void __devinit chrp_pci_fixup_vt8231_ata(struct pci_dev *viaide) | 357 | static void chrp_pci_fixup_vt8231_ata(struct pci_dev *viaide) |
358 | { | 358 | { |
359 | u8 progif; | 359 | u8 progif; |
360 | struct pci_dev *viaisa; | 360 | struct pci_dev *viaisa; |
@@ -375,4 +375,4 @@ static void __devinit chrp_pci_fixup_vt8231_ata(struct pci_dev *viaide) | |||
375 | 375 | ||
376 | pci_dev_put(viaisa); | 376 | pci_dev_put(viaisa); |
377 | } | 377 | } |
378 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_1, chrp_pci_fixup_vt8231_ata); | 378 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_1, chrp_pci_fixup_vt8231_ata); |