Skip to content

Commit

Permalink
[MTD] [NOR] Test devtype, not definition in flash_probe(), drivers/mt…
Browse files Browse the repository at this point in the history
…d/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>
  • Loading branch information
Roel Kluin authored and David Woodhouse committed Feb 3, 2008
1 parent 9308758 commit 0bdf77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/devices/lart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/*
Expand Down

0 comments on commit 0bdf77f

Please sign in to comment.