SPI/MTD: mtd_dataflash oops prevention
commit7f415f1af086422cc271f5e76f81bc1695ce126e
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 6 Jan 2007 00:08:47 +0000 (6 01:08 +0100)
committerAdrian Bunk <bunk@stusta.de>
Tue, 9 Jan 2007 02:23:31 +0000 (9 03:23 +0100)
tree61de1f9e298a929505647df25fd1816f78c2d1e4
parent30f1962cb4491cfaabcd98715535f4bd7eba4307
SPI/MTD: mtd_dataflash oops prevention

Return a fault code if the Dataflash driver runs into a "no device present"
error when the MISO line has a pulldown (it currently expects a pullup), so
that rmmod won't oops.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/mtd/devices/mtd_dataflash.c