aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uwb/wlp/wlp-lc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uwb/wlp/wlp-lc.c')
-rw-r--r--drivers/uwb/wlp/wlp-lc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/uwb/wlp/wlp-lc.c b/drivers/uwb/wlp/wlp-lc.c
index 0799402e73fb..7e5eb49b03b8 100644
--- a/drivers/uwb/wlp/wlp-lc.c
+++ b/drivers/uwb/wlp/wlp-lc.c
@@ -543,7 +543,8 @@ int wlp_setup(struct wlp *wlp, struct uwb_rc *rc)
543 uwb_notifs_register(rc, &wlp->uwb_notifs_handler); 543 uwb_notifs_register(rc, &wlp->uwb_notifs_handler);
544 544
545 uwb_pal_init(&wlp->pal); 545 uwb_pal_init(&wlp->pal);
546 result = uwb_pal_register(rc, &wlp->pal); 546 wlp->pal.rc = rc;
547 result = uwb_pal_register(&wlp->pal);
547 if (result < 0) 548 if (result < 0)
548 uwb_notifs_deregister(wlp->rc, &wlp->uwb_notifs_handler); 549 uwb_notifs_deregister(wlp->rc, &wlp->uwb_notifs_handler);
549 550
@@ -557,7 +558,7 @@ void wlp_remove(struct wlp *wlp)
557 struct device *dev = &wlp->rc->uwb_dev.dev; 558 struct device *dev = &wlp->rc->uwb_dev.dev;
558 d_fnstart(6, dev, "wlp %p\n", wlp); 559 d_fnstart(6, dev, "wlp %p\n", wlp);
559 wlp_neighbors_release(wlp); 560 wlp_neighbors_release(wlp);
560 uwb_pal_unregister(wlp->rc, &wlp->pal); 561 uwb_pal_unregister(&wlp->pal);
561 uwb_notifs_deregister(wlp->rc, &wlp->uwb_notifs_handler); 562 uwb_notifs_deregister(wlp->rc, &wlp->uwb_notifs_handler);
562 wlp_eda_release(&wlp->eda); 563 wlp_eda_release(&wlp->eda);
563 mutex_lock(&wlp->mutex); 564 mutex_lock(&wlp->mutex);