mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 01:09:38 -05:00
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
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue