Commit 083dab5e authored by Deepak R Varma's avatar Deepak R Varma Committed by Shawn Guo
Browse files

soc: imx: imx93-pd: 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 06a9a229
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -164,7 +164,6 @@ MODULE_DEVICE_TABLE(of, imx93_pd_ids);
static struct platform_driver imx93_power_domain_driver = {
	.driver = {
		.name	= "imx93_power_domain",
		.owner	= THIS_MODULE,
		.of_match_table = imx93_pd_ids,
	},
	.probe = imx93_pd_probe,