netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] wan: dscc4: remove unnecessary pci_set_drvdata()
@ 2013-12-09  3:29 Jingoo Han
  2013-12-09  3:30 ` [PATCH 2/5] wan: lmc: " Jingoo Han
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Jingoo Han @ 2013-12-09  3:29 UTC (permalink / raw)
  To: 'David S. Miller'
  Cc: netdev, 'Jingoo Han', 'Francois Romieu'

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/net/wan/dscc4.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c
index 851dc7b..288610d 100644
--- a/drivers/net/wan/dscc4.c
+++ b/drivers/net/wan/dscc4.c
@@ -699,8 +699,6 @@ static void dscc4_free1(struct pci_dev *pdev)
 	for (i = 0; i < dev_per_card; i++)
 		unregister_hdlc_device(dscc4_to_dev(root + i));
 
-	pci_set_drvdata(pdev, NULL);
-
 	for (i = 0; i < dev_per_card; i++)
 		free_netdev(root[i].dev);
 	kfree(root);
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread
* [PATCH 1/5] wan: dscc4: remove unnecessary pci_set_drvdata()
@ 2013-11-25  1:56 Jingoo Han
  0 siblings, 0 replies; 11+ messages in thread
From: Jingoo Han @ 2013-11-25  1:56 UTC (permalink / raw)
  To: 'David S. Miller'
  Cc: netdev, 'Jingoo Han', 'Francois Romieu'

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/net/wan/dscc4.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c
index 851dc7b..288610d 100644
--- a/drivers/net/wan/dscc4.c
+++ b/drivers/net/wan/dscc4.c
@@ -699,8 +699,6 @@ static void dscc4_free1(struct pci_dev *pdev)
 	for (i = 0; i < dev_per_card; i++)
 		unregister_hdlc_device(dscc4_to_dev(root + i));
 
-	pci_set_drvdata(pdev, NULL);
-
 	for (i = 0; i < dev_per_card; i++)
 		free_netdev(root[i].dev);
 	kfree(root);
-- 
1.7.10.4

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

end of thread, other threads:[~2013-12-09 23:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-09  3:29 [PATCH 1/5] wan: dscc4: remove unnecessary pci_set_drvdata() Jingoo Han
2013-12-09  3:30 ` [PATCH 2/5] wan: lmc: " Jingoo Han
2013-12-09 23:10   ` David Miller
2013-12-09  3:31 ` [PATCH 3/5] wan: pc300too: " Jingoo Han
2013-12-09 23:10   ` David Miller
2013-12-09  3:31 ` [PATCH 4/5] wan: pci200syn: " Jingoo Han
2013-12-09 23:10   ` David Miller
2013-12-09  3:32 ` [PATCH 5/5] wan: wanxl: " Jingoo Han
2013-12-09 23:10   ` David Miller
2013-12-09 23:10 ` [PATCH 1/5] wan: dscc4: " David Miller
  -- strict thread matches above, loose matches on Subject: below --
2013-11-25  1:56 Jingoo Han

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 NNTP newsgroup(s).