netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] smsc911x: don't clobber driver_data
@ 2008-12-19 18:05 Steve Glendinning
  2008-12-19 18:05 ` [PATCH 2/2] smsc911x: fix platform resource call during module unload Steve Glendinning
  2008-12-26  0:43 ` [PATCH 1/2] smsc911x: don't clobber driver_data David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Steve Glendinning @ 2008-12-19 18:05 UTC (permalink / raw)
  To: netdev; +Cc: dfoley, Ian Saturley, Steve Glendinning

smsc911x uses driver_data to store our net_device, don't overwrite this
with the mii_bus.

Reported and fixed by dfoley@telus.net.

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
---
 drivers/net/smsc911x.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/net/smsc911x.c b/drivers/net/smsc911x.c
index fa28542..cd925de 100644
--- a/drivers/net/smsc911x.c
+++ b/drivers/net/smsc911x.c
@@ -822,7 +822,6 @@ static int __devinit smsc911x_mii_init(struct platform_device *pdev,
 		pdata->mii_bus->irq[i] = PHY_POLL;
 
 	pdata->mii_bus->parent = &pdev->dev;
-	dev_set_drvdata(&pdev->dev, &pdata->mii_bus);
 
 	pdata->using_extphy = 0;
 
-- 
1.6.0.4


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

end of thread, other threads:[~2008-12-26  0:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-19 18:05 [PATCH 1/2] smsc911x: don't clobber driver_data Steve Glendinning
2008-12-19 18:05 ` [PATCH 2/2] smsc911x: fix platform resource call during module unload Steve Glendinning
2008-12-26  0:44   ` David Miller
2008-12-26  0:43 ` [PATCH 1/2] smsc911x: don't clobber driver_data David Miller

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).