mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
[media] timblogiw: Remove redundant platform_set_drvdata()
Commit 0998d06310
(device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
6266a9d9b0
commit
a0c6ae257e
1 changed files with 0 additions and 4 deletions
|
@ -834,11 +834,9 @@ static int timblogiw_probe(struct platform_device *pdev)
|
|||
goto err_request;
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
|
||||
err_request:
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
v4l2_device_unregister(&lw->v4l2_dev);
|
||||
err_register:
|
||||
kfree(lw);
|
||||
|
@ -858,8 +856,6 @@ static int timblogiw_remove(struct platform_device *pdev)
|
|||
|
||||
kfree(lw);
|
||||
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue