提交 f75529fd 编写于 作者: W Wei Yongjun 提交者: Mark Brown

spi: jcore: remove unnecessary platform_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: NWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 2cb1b3b3
...@@ -206,7 +206,6 @@ static int jcore_spi_probe(struct platform_device *pdev) ...@@ -206,7 +206,6 @@ static int jcore_spi_probe(struct platform_device *pdev)
exit_busy: exit_busy:
err = -EBUSY; err = -EBUSY;
exit: exit:
platform_set_drvdata(pdev, NULL);
spi_master_put(master); spi_master_put(master);
return err; return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册