diff mbox series

[LEDE-DEV,4/4] staging: mt7621-pinctrl: Remove redundant owner assignment

Message ID 20180517004228.30766-4-rosenp@gmail.com
State Rejected
Delegated to: John Crispin
Headers show
Series [LEDE-DEV,1/4] staging: mt7621-gpio: remove redundant owner assignments of drivers | expand

Commit Message

Rosen Penev May 17, 2018, 12:42 a.m. UTC
From: Christian Lütke-Stetzkamp <christian@lkamp.de>

Remove the owner assignment form the platform driver as
platform_driver_register() already initializes the owner.
Found using coccinelle.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 .../patches-4.14/0025-pinctrl-ralink-add-pinctrl-driver.patch  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/target/linux/ramips/patches-4.14/0025-pinctrl-ralink-add-pinctrl-driver.patch b/target/linux/ramips/patches-4.14/0025-pinctrl-ralink-add-pinctrl-driver.patch
index 3e5dac5376..41b611d120 100644
--- a/target/linux/ramips/patches-4.14/0025-pinctrl-ralink-add-pinctrl-driver.patch
+++ b/target/linux/ramips/patches-4.14/0025-pinctrl-ralink-add-pinctrl-driver.patch
@@ -49,7 +49,7 @@  Signed-off-by: John Crispin <blogic@openwrt.org>
  obj-$(CONFIG_PINCTRL_SIRF)	+= sirf/
 --- /dev/null
 +++ b/drivers/pinctrl/pinctrl-rt2880.c
-@@ -0,0 +1,472 @@
+@@ -0,0 +1,471 @@
 +/*
 + *  linux/drivers/pinctrl/pinctrl-rt2880.c
 + *
@@ -511,7 +511,6 @@  Signed-off-by: John Crispin <blogic@openwrt.org>
 +	.probe = rt2880_pinmux_probe,
 +	.driver = {
 +		.name = "rt2880-pinmux",
-+		.owner = THIS_MODULE,
 +		.of_match_table = rt2880_pinmux_match,
 +	},
 +};