Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0c6ae25 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mauro Carvalho Chehab
Browse files

[media] timblogiw: Remove redundant platform_set_drvdata()



Commit 0998d063 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6266a9d9
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;
}