Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bdf77f8 authored by Roel Kluin's avatar Roel Kluin Committed by David Woodhouse
Browse files

[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: default avatarRoel Kluin <12o3l@tiscali.nl>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 9308758c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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));
}
}


/*
/*