Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0bdf77f85bd89d5e00d32af0fb7d2dac63ce8ff5
Commit:     0bdf77f85bd89d5e00d32af0fb7d2dac63ce8ff5
Parent:     9308758c50610c077ca41e82c4b98b2de96e8387
Author:     Roel Kluin <[EMAIL PROTECTED]>
AuthorDate: Mon Jan 28 11:48:09 2008 +0100
Committer:  David Woodhouse <[EMAIL PROTECTED]>
CommitDate: Sun Feb 3 18:12:09 2008 +1100

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
---
 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 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));
 }
 
 /*
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to