]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc/86xx: Run sbc310 USB fixup code only on the appropriate platform.
authorMartyn Welch <martyn.welch@gefanuc.com>
Fri, 13 Mar 2009 11:35:08 +0000 (11:35 +0000)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 19 Mar 2009 08:53:39 +0000 (03:53 -0500)
Patch to limit NEC fixup to SBC310, following similar patch to SBC610 by
Tony Breeds: 368a12117dd8abf6eaefa37c21ac313b517128b9

Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/86xx/gef_sbc310.c

index 0f20172af84b9a96887a00eec9a6ac4000589e66..ba3ce4381611218a18a6d783111df8b9e8af1284 100644 (file)
@@ -153,6 +153,10 @@ static void __init gef_sbc310_nec_fixup(struct pci_dev *pdev)
 {
        unsigned int val;
 
+       /* Do not do the fixup on other platforms! */
+       if (!machine_is(gef_sbc310))
+               return;
+
        printk(KERN_INFO "Running NEC uPD720101 Fixup\n");
 
        /* Ensure only ports 1 & 2 are enabled */