[PATCH] SPI/MTD: mtd_dataflash oops prevention
authorDavid Brownell <david-b@pacbell.net>
Sat, 30 Dec 2006 00:48:47 +0000 (16:48 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 30 Dec 2006 18:56:42 +0000 (10:56 -0800)
commitde4fa99266b2e1f6771644b9b50f33fe8f82d728
tree1c1afc6745a16504acdf775fae7d9fef3df12bef
parent17c65d69906a6e2e6df4822b00a9e5e00e35ea9a
[PATCH] 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>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/mtd/devices/mtd_dataflash.c