summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/module.c
diff options
context:
space:
mode:
authorViresh Kumar2015-06-07 05:43:16 +0200
committerGreg Kroah-Hartman2015-06-09 00:18:02 +0200
commitcf6b62d904f184fd13dbba56d77e9a8fbf98eda7 (patch)
tree9efbf720e38618767cc2f9421559645b479c467b /drivers/staging/greybus/module.c
parentgreybus: Generate greybus wide unique ids for endo devices (diff)
downloadkernel-qcow2-linux-cf6b62d904f184fd13dbba56d77e9a8fbf98eda7.tar.gz
kernel-qcow2-linux-cf6b62d904f184fd13dbba56d77e9a8fbf98eda7.tar.xz
kernel-qcow2-linux-cf6b62d904f184fd13dbba56d77e9a8fbf98eda7.zip
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) {