Commit 3c047887 authored by Deepak R Varma's avatar Deepak R Varma Committed by Shawn Guo

soc: imx: imx93-src: No need to set device_driver owner

There is no need to exclusively set the .owner member of the struct
device_driver when defining the platform_driver struct. The Linux core
takes care of setting the .owner member as part of the call to
module_platform_driver() helper function.

Issue identified using the platform_no_drv_owner.cocci Coccinelle
semantic patch.
Signed-off-by: default avatarDeepak R Varma <drv@mailo.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 083dab5e
......@@ -21,7 +21,6 @@ MODULE_DEVICE_TABLE(of, imx93_src_ids);
static struct platform_driver imx93_src_driver = {
.driver = {
.name = "imx93_src",
.owner = THIS_MODULE,
.of_match_table = imx93_src_ids,
},
.probe = imx93_src_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment