[MIPS] Sibyte: Register PIO PATA device only for Swarm and Litte Sur
authorRalf Baechle <ralf@linux-mips.org>
Wed, 8 Oct 2008 18:14:33 +0000 (19:14 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 8 Oct 2008 18:19:28 +0000 (19:19 +0100)
Symbol name spaghetti which is too complicated to cleanup on this stage
of the release cycle breaks the build on BCM1480 platforms.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/sibyte/swarm/platform.c

index dd0e5b9b64e8c9a640befa4c1db5e37912f60115..54847fe1e564d5ef2cdd985f27511f0dc7ba599a 100644 (file)
@@ -9,6 +9,8 @@
 #include <asm/sibyte/sb1250_genbus.h>
 #include <asm/sibyte/sb1250_regs.h>
 
+#if defined(CONFIG_SIBYTE_SWARM) || defined(CONFIG_SIBYTE_LITTLESUR)
+
 #define DRV_NAME       "pata-swarm"
 
 #define SWARM_IDE_SHIFT        5
@@ -79,3 +81,5 @@ static int __init swarm_pata_init(void)
 }
 
 device_initcall(swarm_pata_init);
+
+#endif /* defined(CONFIG_SIBYTE_SWARM) || defined(CONFIG_SIBYTE_LITTLESUR) */