Commit 526d13dd authored by Chas Williams's avatar Chas Williams Committed by David S. Miller

[ATM]: Use dev_get_by_name() instea of atm_lane_ops->get_lec() [2/3]

parent 4aea2cbf
...@@ -252,11 +252,11 @@ void atm_mpoa_disp_qos(char *page, int *len) ...@@ -252,11 +252,11 @@ void atm_mpoa_disp_qos(char *page, int *len)
static struct net_device *find_lec_by_itfnum(int itf) static struct net_device *find_lec_by_itfnum(int itf)
{ {
struct net_device *dev; struct net_device *dev;
if (!try_atm_lane_ops()) char name[IFNAMSIZ];
return NULL;
dev = atm_lane_ops->get_lec(itf); sprintf(name, "lec%d", itf);
module_put(atm_lane_ops->owner); dev = dev_get_by_name(name);
return dev; return dev;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment