diff mbox series

Input: stmpe - drop driver owner assignment

Message ID 20240327174655.519503-1-krzysztof.kozlowski@linaro.org (mailing list archive)
State New, archived
Headers show
Series Input: stmpe - drop driver owner assignment | expand

Commit Message

Krzysztof Kozlowski March 27, 2024, 5:46 p.m. UTC
Core in platform_driver_register() already sets the .owner, so driver
does not need to.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/input/keyboard/stmpe-keypad.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Dmitry Torokhov March 28, 2024, 5:54 p.m. UTC | #1
On Wed, Mar 27, 2024 at 06:46:55PM +0100, Krzysztof Kozlowski wrote:
> Core in platform_driver_register() already sets the .owner, so driver
> does not need to.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Applied, thank you.
diff mbox series

Patch

diff --git a/drivers/input/keyboard/stmpe-keypad.c b/drivers/input/keyboard/stmpe-keypad.c
index 2013c0afd0c3..ef2f44027894 100644
--- a/drivers/input/keyboard/stmpe-keypad.c
+++ b/drivers/input/keyboard/stmpe-keypad.c
@@ -413,7 +413,6 @@  static void stmpe_keypad_remove(struct platform_device *pdev)
 
 static struct platform_driver stmpe_keypad_driver = {
 	.driver.name	= "stmpe-keypad",
-	.driver.owner	= THIS_MODULE,
 	.probe		= stmpe_keypad_probe,
 	.remove_new	= stmpe_keypad_remove,
 };