提交 0bdf77f8 编写于 作者: R Roel Kluin 提交者: David Woodhouse

[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: NRoel Kluin <12o3l@tiscali.nl>
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 9308758c
...@@ -323,7 +323,7 @@ static int flash_probe (void) ...@@ -323,7 +323,7 @@ static int flash_probe (void)
/* put the flash back into command mode */ /* put the flash back into command mode */
write32 (DATA_TO_FLASH (READ_ARRAY),0x00000000); 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));
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册