summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/module.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-06-07 09:13:16 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-06-08 15:18:02 -0700
commitcf6b62d904f184fd13dbba56d77e9a8fbf98eda7 (patch)
tree9efbf720e38618767cc2f9421559645b479c467b /drivers/staging/greybus/module.c
parent4a0418700871936cddec3a2b3c5a029ec0b2d6a3 (diff)
greybus: Prefix module-id with endo id
Prefix module-id with endo-id to uniquely identify it for the entire kernel. Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/module.c')
-rw-r--r--drivers/staging/greybus/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/module.c b/drivers/staging/greybus/module.c
index 07b7e444d766..d7706544f3be 100644
--- a/drivers/staging/greybus/module.c
+++ b/drivers/staging/greybus/module.c
@@ -144,7 +144,7 @@ struct gb_module *gb_module_create(struct device *parent, u8 module_id)
module->dev.groups = module_groups;
module->dev.dma_mask = parent->dma_mask;
device_initialize(&module->dev);
- dev_set_name(&module->dev, "%d", module_id);
+ dev_set_name(&module->dev, "%s:%hhu", dev_name(parent), module_id);
retval = device_add(&module->dev);
if (retval) {