Skip to contentSkip to conversation

drivers/net/ethernet/marvell: add missing platform_driver owne

PATCH In review Libo Chen 3 participants 3 messages May 21, 2013 – May 22, 2013

Subsystems (3)
lore
Share & tools
lore

Libo Chen

author
#0 lore raw

PATCH 18/19 drivers/net/ethernet/marvell: add missing platform_driver owne

set the owner of platform_driver, to ensure that the caller of driver holds a module refernece

---
 drivers/net/ethernet/marvell/mvneta.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/ethernet/marvell/mvneta.c +1 -0
index c966785..be35a3e 100644
@@ -2820,6 +2820,7 @@ static struct platform_driver mvneta_driver = {
 	.remove = mvneta_remove,
 	.driver = {
 		.name = MVNETA_DRIVER_NAME,
+		.owner	= THIS_MODULE,
 		.of_match_table = mvneta_match,
 	},
 };
Signature · 1 line
1.7.1
#1 lore raw

Hello.

Quoted 13 lines · Libo Chen

set the owner of platform_driver, to ensure that the caller of driver holds a module refernece

---
  drivers/net/ethernet/marvell/mvneta.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/ethernet/marvell/mvneta.c +0 -0
index c966785..be35a3e 100644

drivers/net/ethernet/marvell/mvneta.c static struct platform_driver mvneta_driver = { · line 2823

Quoted 4 lines
drivers/net/ethernet/marvell/mvneta.c +1 -0
@@ -2820,6 +2820,7 @@ static struct platform_driver mvneta_driver = {
  	.remove = mvneta_remove,
  	.driver = {
  		.name = MVNETA_DRIVER_NAME,
+		.owner	= THIS_MODULE,

Indent this = with space or indent all ='s with tabs.

drivers/net/ethernet/marvell/mvneta.c static struct platform_driver mvneta_driver = { · line 2826

Quoted 3 lines
drivers/net/ethernet/marvell/mvneta.c +0 -0
  		.of_match_table = mvneta_match,
  	},
  };

WBR, Sergei

#2 lore raw
Quoted 12 lines · Sergei Shtylyov

Hello.

Quoted 7 lines · Libo Chen

set the owner of platform_driver, to ensure that the caller of driver holds a module refernece

---
  drivers/net/ethernet/marvell/mvneta.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
Quoted 11 lines

drivers/net/ethernet/marvell/mvneta.c static struct platform_driver mvneta_driver = { · line 2823

Quoted 9 lines
drivers/net/ethernet/marvell/mvneta.c +1 -0
index c966785..be35a3e 100644
@@ -2820,6 +2820,7 @@ static struct platform_driver mvneta_driver = {
      .remove = mvneta_remove,
      .driver = {
          .name = MVNETA_DRIVER_NAME,
+        .owner    = THIS_MODULE,

Indent this = with space or indent all ='s with tabs.

thanks for your suggest.

Regards,

Libo

Quoted 10 lines

drivers/net/ethernet/marvell/mvneta.c static struct platform_driver mvneta_driver = { · line 2826

Quoted 4 lines
drivers/net/ethernet/marvell/mvneta.c +0 -0
          .of_match_table = mvneta_match,
      },
  };

WBR, Sergei