DORMANTno replies

[PATCH -next] soc: fsl: dpio: Remove redundant initialization owner in dpaa2_dpio_driver

From: Li Zetao <hidden>
Date: 2023-08-04 09:22:29
Also in: linux-arm-kernel
Subsystem: freescale soc drivers, the rest · Maintainers: Christophe Leroy, Linus Torvalds

The fsl_mc_driver_register() will set "THIS_MODULE" to driver.owner when
register a fsl_mc_driver driver, so it is redundant initialization to set
driver.owner in dpaa2_dpio_driver statement. Remove it for clean code.

Signed-off-by: Li Zetao <redacted>
---
 drivers/soc/fsl/dpio/dpio-driver.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/drivers/soc/fsl/dpio/dpio-driver.c b/drivers/soc/fsl/dpio/dpio-driver.c
index 9e3fddd8f5a9..6be4f1caafcb 100644
--- a/drivers/soc/fsl/dpio/dpio-driver.c
+++ b/drivers/soc/fsl/dpio/dpio-driver.c
@@ -312,7 +312,6 @@ static const struct fsl_mc_device_id dpaa2_dpio_match_id_table[] = {
 static struct fsl_mc_driver dpaa2_dpio_driver = {
 	.driver = {
 		.name		= KBUILD_MODNAME,
-		.owner		= THIS_MODULE,
 	},
 	.probe		= dpaa2_dpio_probe,
 	.remove		= dpaa2_dpio_remove,
-- 
2.34.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help