diff options
author | Roel Kluin <12o3l@tiscali.nl> | 2008-01-28 05:48:09 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-02-03 02:12:09 -0500 |
commit | 0bdf77f85bd89d5e00d32af0fb7d2dac63ce8ff5 (patch) | |
tree | 5b4b665fcb5f45c8897fda9b1962d6c7d139de7b | |
parent | 9308758c50610c077ca41e82c4b98b2de96e8387 (diff) |
[MTD] [NOR] Test devtype, not definition in flash_probe(), drivers/mtd/devices/lart.c
drivers/mtd/devices/lart.c:119:#define FLASH_DEVICE_16mbit_BOTTOM 0x88f488f4
As was, unless "manufacturer != FLASH_MANUFACTURER" this returned true
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
-rw-r--r-- | drivers/mtd/devices/lart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/lart.c b/drivers/mtd/devices/lart.c index 4ea50a1dda85..99fd210feaec 100644 --- a/drivers/mtd/devices/lart.c +++ b/drivers/mtd/devices/lart.c | |||
@@ -323,7 +323,7 @@ static int flash_probe (void) | |||
323 | /* put the flash back into command mode */ | 323 | /* put the flash back into command mode */ |
324 | write32 (DATA_TO_FLASH (READ_ARRAY),0x00000000); | 324 | write32 (DATA_TO_FLASH (READ_ARRAY),0x00000000); |
325 | 325 | ||
326 | return (manufacturer == FLASH_MANUFACTURER && (devtype == FLASH_DEVICE_16mbit_TOP || FLASH_DEVICE_16mbit_BOTTOM)); | 326 | return (manufacturer == FLASH_MANUFACTURER && (devtype == FLASH_DEVICE_16mbit_TOP || devtype == FLASH_DEVICE_16mbit_BOTTOM)); |
327 | } | 327 | } |
328 | 328 | ||
329 | /* | 329 | /* |