aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r--drivers/mtd/devices/st_spi_fsm.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c
index 4d6b58c976c7..1957d7c8e185 100644
--- 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)
2082static int stfsm_remove(struct platform_device *pdev) 2082static int stfsm_remove(struct platform_device *pdev)
2083{ 2083{
2084 struct stfsm *fsm = platform_get_drvdata(pdev); 2084 struct stfsm *fsm = platform_get_drvdata(pdev);
2085 int err;
2086 2085
2087 err = mtd_device_unregister(&fsm->mtd); 2086 return mtd_device_unregister(&fsm->mtd);
2088 if (err)
2089 return err;
2090
2091 return 0;
2092} 2087}
2093 2088
2094static struct of_device_id stfsm_match[] = { 2089static struct of_device_id stfsm_match[] = {