summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
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);