projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea7864b
)
mtd: st_spi_fsm: Succinctly reorganise .remove()
author
Lee Jones
<lee.jones@linaro.org>
Thu, 20 Mar 2014 11:11:47 +0000
(11:11 +0000)
committer
Brian Norris
<computersforpeace@gmail.com>
Thu, 20 Mar 2014 11:56:53 +0000
(
04:56
-0700)
Reported-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/st_spi_fsm.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/devices/st_spi_fsm.c
b/drivers/mtd/devices/st_spi_fsm.c
index
4d6b58c
..
1957d7c
100644
(file)
--- a/
drivers/mtd/devices/st_spi_fsm.c
+++ b/
drivers/mtd/devices/st_spi_fsm.c
@@
-2082,13
+2082,8
@@
static int stfsm_probe(struct platform_device *pdev)
static int stfsm_remove(struct platform_device *pdev)
{
struct stfsm *fsm = platform_get_drvdata(pdev);
- int err;
- err = mtd_device_unregister(&fsm->mtd);
- if (err)
- return err;
-
- return 0;
+ return mtd_device_unregister(&fsm->mtd);
}
static struct of_device_id stfsm_match[] = {