aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uwb/pal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uwb/pal.c')
-rw-r--r--drivers/uwb/pal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/uwb/pal.c b/drivers/uwb/pal.c
index 8ee7d90a8c68..690577d2a35b 100644
--- a/drivers/uwb/pal.c
+++ b/drivers/uwb/pal.c
@@ -44,10 +44,12 @@ int uwb_pal_register(struct uwb_pal *pal)
44 int ret; 44 int ret;
45 45
46 if (pal->device) { 46 if (pal->device) {
47 /* create a link to the uwb_rc in the PAL device's directory. */
47 ret = sysfs_create_link(&pal->device->kobj, 48 ret = sysfs_create_link(&pal->device->kobj,
48 &rc->uwb_dev.dev.kobj, "uwb_rc"); 49 &rc->uwb_dev.dev.kobj, "uwb_rc");
49 if (ret < 0) 50 if (ret < 0)
50 return ret; 51 return ret;
52 /* create a link to the PAL in the UWB device's directory. */
51 ret = sysfs_create_link(&rc->uwb_dev.dev.kobj, 53 ret = sysfs_create_link(&rc->uwb_dev.dev.kobj,
52 &pal->device->kobj, pal->name); 54 &pal->device->kobj, pal->name);
53 if (ret < 0) { 55 if (ret < 0) {