summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2004-01-10 08:36:15 -0500
committerStephen Hemminger <shemminger@osdl.org>2004-01-10 08:36:15 -0500
commitc360d0a60e57217733e00b5ad7c4cf3a94a2b07e (patch)
tree6835af4bfd0058bbf008be4c43e6964a566e8ebd /net/lapb/lapb_iface.c
parent1970654bf3057be52f250afaf362babc6df15b2a (diff)
[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).
Diffstat (limited to 'net/lapb/lapb_iface.c')
-rw-r--r--net/lapb/lapb_iface.c3
1 files changed, 2 insertions, 1 deletions
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);