Linux-GPIO Archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: Drop owner assignment from platform_driver
@ 2015-07-10  6:27 Krzysztof Kozlowski
  2015-07-16 13:15 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2015-07-10  6:27 UTC (permalink / raw
  To: Linus Walleij, Barry Song, linux-gpio, linux-arm-kernel,
	linux-kernel
  Cc: Krzysztof Kozlowski

platform_driver does not need to set an owner because
platform_driver_register() will set it.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

---

The coccinelle script which generated the patch was sent here:
http://www.spinics.net/lists/kernel/msg2029903.html
---
 drivers/pinctrl/sirf/pinctrl-atlas7.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pinctrl/sirf/pinctrl-atlas7.c b/drivers/pinctrl/sirf/pinctrl-atlas7.c
index 9384e0aa3996..d6e80fe1c7f7 100644
--- a/drivers/pinctrl/sirf/pinctrl-atlas7.c
+++ b/drivers/pinctrl/sirf/pinctrl-atlas7.c
@@ -4621,7 +4621,6 @@ failed:
 static struct platform_driver atlas7_gpio_driver = {
 	.driver = {
 		.name = "atlas7-gpio",
-		.owner = THIS_MODULE,
 		.of_match_table = atlas7_gpio_ids,
 	},
 	.probe = atlas7_gpio_probe,
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] pinctrl: Drop owner assignment from platform_driver
  2015-07-10  6:27 [PATCH] pinctrl: Drop owner assignment from platform_driver Krzysztof Kozlowski
@ 2015-07-16 13:15 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2015-07-16 13:15 UTC (permalink / raw
  To: Krzysztof Kozlowski
  Cc: Barry Song, linux-gpio@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org

On Fri, Jul 10, 2015 at 8:27 AM, Krzysztof Kozlowski
<k.kozlowski@samsung.com> wrote:

> platform_driver does not need to set an owner because
> platform_driver_register() will set it.
>
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

Patch applied.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-16 13:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-10  6:27 [PATCH] pinctrl: Drop owner assignment from platform_driver Krzysztof Kozlowski
2015-07-16 13:15 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).