projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d367e37
)
mtd: m25p80: fixup device removal failure path
author
Brian Norris
<computersforpeace@gmail.com>
Sun, 27 Oct 2013 22:42:12 +0000
(15:42 -0700)
committer
Brian Norris
<computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:33:14 +0000
(23:33 -0800)
Device removal should fail if MTD unregistration fails.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/mtd/devices/m25p80.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/devices/m25p80.c
b/drivers/mtd/devices/m25p80.c
index
5897889
..
7eda71d
100644
(file)
--- a/
drivers/mtd/devices/m25p80.c
+++ b/
drivers/mtd/devices/m25p80.c
@@
-1125,9
+1125,7
@@
static int m25p_remove(struct spi_device *spi)
struct m25p *flash = spi_get_drvdata(spi);
/* Clean up MTD stuff. */
- mtd_device_unregister(&flash->mtd);
-
- return 0;
+ return mtd_device_unregister(&flash->mtd);
}