diff mbox series

i2c: viperboard: drop driver owner assignment

Message ID 20240327174705.519535-1-krzysztof.kozlowski@linaro.org
State Accepted
Delegated to: Andi Shyti
Headers show
Series i2c: viperboard: drop driver owner assignment | expand

Commit Message

Krzysztof Kozlowski March 27, 2024, 5:47 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/i2c/busses/i2c-viperboard.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Andi Shyti March 28, 2024, 7:36 a.m. UTC | #1
Hi

On Wed, 27 Mar 2024 18:47:05 +0100, Krzysztof Kozlowski wrote:
> Core in platform_driver_register() already sets the .owner, so driver
> does not need to.
> 
> 

Applied to i2c/i2c-host-next on

git://git.kernel.org/pub/scm/linux/kernel/git/local tree

Thank you,
Andi

Patches applied
===============
[1/1] i2c: viperboard: drop driver owner assignment
      commit: bfced8e642d8e221a765b4d97ce7705cfa63b9a6
diff mbox series

Patch

diff --git a/drivers/i2c/busses/i2c-viperboard.c b/drivers/i2c/busses/i2c-viperboard.c
index 9e153b5b0e8e..3784b07f5371 100644
--- a/drivers/i2c/busses/i2c-viperboard.c
+++ b/drivers/i2c/busses/i2c-viperboard.c
@@ -416,7 +416,6 @@  static void vprbrd_i2c_remove(struct platform_device *pdev)
 
 static struct platform_driver vprbrd_i2c_driver = {
 	.driver.name	= "viperboard-i2c",
-	.driver.owner	= THIS_MODULE,
 	.probe		= vprbrd_i2c_probe,
 	.remove_new	= vprbrd_i2c_remove,
 };