]> git.neil.brown.name Git - history.git/commitdiff
[ATM]: Use dev_get_by_name() instea of atm_lane_ops->get_lec() [2/3]
authorChas Williams <chas@cmf.nrl.navy.mil>
Thu, 25 Sep 2003 14:16:20 +0000 (07:16 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Thu, 25 Sep 2003 14:16:20 +0000 (07:16 -0700)
net/atm/mpc.c

index f0d5dbe0e682f9c98e072977fbeb55c4577d3d25..f2c22940ec0007ad518767c1a035effa2ca8b5c4 100644 (file)
@@ -252,11 +252,11 @@ void atm_mpoa_disp_qos(char *page, int *len)
 static struct net_device *find_lec_by_itfnum(int itf)
 {
        struct net_device *dev;
-       if (!try_atm_lane_ops())
-               return NULL;
+       char name[IFNAMSIZ];
 
-       dev = atm_lane_ops->get_lec(itf);
-       module_put(atm_lane_ops->owner);
+       sprintf(name, "lec%d", itf);
+       dev = dev_get_by_name(name);
+       
        return dev;
 }