From c360d0a60e57217733e00b5ad7c4cf3a94a2b07e Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Sat, 10 Jan 2004 08:36:15 -0500 Subject: [wan lapb] beginning of cleanups Beginning of lapb cleanups: lapb_register gets net_device along with the "token" and it gets stored in lapb_cb (token argument will die later). --- net/lapb/lapb_iface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net/lapb/lapb_iface.c') diff --git a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c index fc71309e7e9b..8be730427a3d 100644 --- a/net/lapb/lapb_iface.c +++ b/net/lapb/lapb_iface.c @@ -144,7 +144,7 @@ out: return lapb; } -int lapb_register(void *token, struct lapb_register_struct *callbacks) +int lapb_register(struct net_device *dev, void *token, struct lapb_register_struct *callbacks) { struct lapb_cb *lapb; int rc = LAPB_BADTOKEN; @@ -163,6 +163,7 @@ int lapb_register(void *token, struct lapb_register_struct *callbacks) goto out; lapb->token = token; + lapb->dev = dev; lapb->callbacks = *callbacks; __lapb_insert_cb(lapb); -- cgit v1.2.3