aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uwb/umc-dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uwb/umc-dev.c')
-rw-r--r--drivers/uwb/umc-dev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/uwb/umc-dev.c b/drivers/uwb/umc-dev.c
index aa44e1c1a102..53207e14cd8f 100644
--- a/drivers/uwb/umc-dev.c
+++ b/drivers/uwb/umc-dev.c
@@ -31,8 +31,7 @@ struct umc_dev *umc_device_create(struct device *parent, int n)
31 31
32 umc = kzalloc(sizeof(struct umc_dev), GFP_KERNEL); 32 umc = kzalloc(sizeof(struct umc_dev), GFP_KERNEL);
33 if (umc) { 33 if (umc) {
34 snprintf(umc->dev.bus_id, sizeof(umc->dev.bus_id), "%s-%d", 34 dev_set_name(&umc->dev, "%s-%d", dev_name(parent), n);
35 parent->bus_id, n);
36 umc->dev.parent = parent; 35 umc->dev.parent = parent;
37 umc->dev.bus = &umc_bus_type; 36 umc->dev.bus = &umc_bus_type;
38 umc->dev.release = umc_device_release; 37 umc->dev.release = umc_device_release;