* [PATCH 1/1][MTD] Test devtype, not definition in flash_probe(), drivers/mtd/devices/lart.c
@ 2008-01-28 10:48 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2008-01-28 10:48 UTC (permalink / raw)
To: dwmw2; +Cc: linux-mtd
drivers/mtd/devices/lart.c:119:#define FLASH_DEVICE_16mbit_BOTTOM 0x88f488f4
As was, unless "manufacturer != FLASH_MANUFACTURER" this returned true
--
Test devtype, not definition
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/drivers/mtd/devices/lart.c b/drivers/mtd/devices/lart.c
index 4ea50a1..99fd210 100644
--- a/drivers/mtd/devices/lart.c
+++ b/drivers/mtd/devices/lart.c
@@ -323,7 +323,7 @@ static int flash_probe (void)
/* put the flash back into command mode */
write32 (DATA_TO_FLASH (READ_ARRAY),0x00000000);
- return (manufacturer == FLASH_MANUFACTURER && (devtype == FLASH_DEVICE_16mbit_TOP || FLASH_DEVICE_16mbit_BOTTOM));
+ return (manufacturer == FLASH_MANUFACTURER && (devtype == FLASH_DEVICE_16mbit_TOP || devtype == FLASH_DEVICE_16mbit_BOTTOM));
}
/*
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-28 10:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28 10:48 [PATCH 1/1][MTD] Test devtype, not definition in flash_probe(), drivers/mtd/devices/lart.c Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox