mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
drm/imx/dcss: Don't call dev_set_drvdata(..., NULL);
The driver core takes care about removing driver data, so this can be dropped from the driver. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com> Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221230130025.240776-2-u.kleine-koenig@pengutronix.de
This commit is contained in:
parent
7efb103831
commit
c7cb175bb1
@ -74,8 +74,6 @@ static int dcss_drv_platform_probe(struct platform_device *pdev)
|
||||
dcss_shutoff:
|
||||
dcss_dev_destroy(mdrv->dcss);
|
||||
|
||||
dev_set_drvdata(dev, NULL);
|
||||
|
||||
err:
|
||||
kfree(mdrv);
|
||||
return err;
|
||||
@ -88,8 +86,6 @@ static int dcss_drv_platform_remove(struct platform_device *pdev)
|
||||
dcss_kms_detach(mdrv->kms);
|
||||
dcss_dev_destroy(mdrv->dcss);
|
||||
|
||||
dev_set_drvdata(&pdev->dev, NULL);
|
||||
|
||||
kfree(mdrv);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user