]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mtd: diskonchip: don't warn about ARM architecture
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Nov 2012 21:55:26 +0000 (22:55 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 16 Nov 2012 08:57:38 +0000 (10:57 +0200)
Enabling the diskonchip drivers on most architectures results
in a pointless warning "#warning Unknown architecture for
DiskOnChip. No default probe locations defined". The driver
can in fact handle the default location already through the
CONFIG_MTD_DOCPROBE_ADDRESS, which gets set on the platforms
that need it, and we get a run-time error if this is not
set correctly.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/devices/docprobe.c
drivers/mtd/nand/diskonchip.c

index 706b847b46b30ae0d34b1ded35b9529495d9fbc2..88b3fd3e18a717d6951445ed36bce1ada48f665a 100644 (file)
@@ -70,8 +70,6 @@ static unsigned long __initdata doc_locations[] = {
        0xe0000, 0xe2000, 0xe4000, 0xe6000,
        0xe8000, 0xea000, 0xec000, 0xee000,
 #endif /*  CONFIG_MTD_DOCPROBE_HIGH */
-#else
-#warning Unknown architecture for DiskOnChip. No default probe locations defined
 #endif
        0xffffffff };
 
index 256eb30f6180f655e120e2ad90b988a1b7754e0b..81fa5784f98b390fb28ee81a23e720db56c2cc8b 100644 (file)
@@ -53,8 +53,6 @@ static unsigned long __initdata doc_locations[] = {
        0xe0000, 0xe2000, 0xe4000, 0xe6000,
        0xe8000, 0xea000, 0xec000, 0xee000,
 #endif /*  CONFIG_MTD_DOCPROBE_HIGH */
-#else
-#warning Unknown architecture for DiskOnChip. No default probe locations defined
 #endif
        0xffffffff };