提交 d9ba46d3 编写于 作者: L Lee Jones 提交者: Brian Norris

mtd: st_spi_fsm: Succinctly reorganise .remove()

Reported-by: NBrian Norris <computersforpeace@gmail.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 ea7864bf
......@@ -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[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册