[BUG] pcmcia: dev_node removal (drivers with unregister_netdev check)

Komuro komurojun-mbn at nifty.com
Sun Jun 6 03:56:28 EDT 2010


Dear Dominik

You introduced a bug to smc91c92_cs.c

link->priv = dev;   
      is necessary at smc91c92_probe.


--- a/drivers/net/pcmcia/smc91c92_cs.c
+++ b/drivers/net/pcmcia/smc91c92_cs.c
@@ -103,7 +103,6 @@ struct smc_private {
     u_short                    manfid;
     u_short                    cardid;
 
-    dev_node_t                 node;
     struct sk_buff             *saved_skb;
     int                                packets_waiting;
     void                       __iomem *base;
@@ -323,7 +322,6 @@ static int smc91c92_probe(struct pcmcia_device *link)
        return -ENOMEM;
     smc = netdev_priv(dev);
     smc->p_dev = link;
-    link->priv = dev;                    <=  HERE. This is necessary!!
 




More information about the linux-pcmcia mailing list