o wanrouter: fix bug introduced by latest namespace fix

Thanks to Adrian Bunk for reporting.
parent 6e9445e6
......@@ -534,7 +534,8 @@ extern void unlock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags);
/* Public Data */
extern struct wan_device *router_devlist; /* list of registered devices */
/* list of registered devices */
extern struct wan_device *wanrouter_router_devlist;
#endif /* __KERNEL__ */
#endif /* _ROUTER_H */
......@@ -87,7 +87,8 @@ static void *r_start(struct seq_file *m, loff_t *pos)
lock_kernel();
if (!l--)
return (void *)1;
for (wandev = router_devlist; l-- && wandev; wandev = wandev->next)
for (wandev = wanrouter_router_devlist; l-- && wandev;
wandev = wandev->next)
;
return wandev;
}
......@@ -96,7 +97,7 @@ static void *r_next(struct seq_file *m, void *v, loff_t *pos)
{
struct wan_device *wandev = v;
(*pos)++;
return (v == (void *)1) ? router_devlist : wandev->next;
return (v == (void *)1) ? wanrouter_router_devlist : wandev->next;
}
static void r_stop(struct seq_file *m, void *v)
......
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