diff options
author | Deepak R Varma <drv@mailo.com> | 2022-12-22 20:57:03 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2023-01-01 08:29:14 +0300 |
commit | 3c047887243c72e7835a17e90361ed19e8354bf5 (patch) | |
tree | abd693f781ec614c5e16186c9a032f04fe06fd50 /drivers/soc/imx | |
parent | 083dab5e69f3dc9a3c85b2d690ff91cfed57e926 (diff) | |
download | linux-3c047887243c72e7835a17e90361ed19e8354bf5.tar.xz |
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: Deepak R Varma <drv@mailo.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/soc/imx')
-rw-r--r-- | drivers/soc/imx/imx93-src.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/soc/imx/imx93-src.c b/drivers/soc/imx/imx93-src.c index 4d74921cae0f..f1c2e22d5cbd 100644 --- a/drivers/soc/imx/imx93-src.c +++ b/drivers/soc/imx/imx93-src.c @@ -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, |