Skip to contentSkip to conversation

soc: imx: Remove unnecessary .owner

PATCH New Jiapeng Chong 1 participant 2 messages Sep 15, 2022 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 soc: imx: Remove unnecessary .owner

Remove .owner field if calls are used which set it automatically.

./drivers/soc/imx/imx93-pd.c:154:3-8: No need to set .owner here. The core will do it.

---
 drivers/soc/imx/imx93-pd.c | 1 -
 1 file changed, 1 deletion(-)
drivers/soc/imx/imx93-pd.c +0 -1
index 1f3d7039c1de..fa52a2a9e5b1 100644
@@ -151,7 +151,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,
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw

PATCH 2/2 soc: imx: Remove unnecessary .owner

Remove .owner field if calls are used which set it automatically.

./drivers/soc/imx/imx93-src.c:24:3-8: No need to set .owner here. The core will do it.

---
 drivers/soc/imx/imx93-src.c | 1 -
 1 file changed, 1 deletion(-)
drivers/soc/imx/imx93-src.c +0 -1
index 4d74921cae0f..f1c2e22d5cbd 100644
@@ -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,
Signature · 1 line
2.20.1.7.g153144c