forked from Minki/linux
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: Wei Yongjun <weiyj.lk@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
2cb1b3b3ac
commit
f75529fd71
@ -206,7 +206,6 @@ static int jcore_spi_probe(struct platform_device *pdev)
|
||||
exit_busy:
|
||||
err = -EBUSY;
|
||||
exit:
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
spi_master_put(master);
|
||||
return err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user