1
0
Fork 0

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>
steinar/wifi_calib_4_9_kernel
Wei Yongjun 2016-08-08 13:53:23 +00:00 committed by Mark Brown
parent 2cb1b3b3ac
commit f75529fd71
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}