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