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>
This commit is contained in:
Viresh Kumar 2015-06-07 09:13:16 +05:30 committed by Greg Kroah-Hartman
parent 4a04187008
commit cf6b62d904
1 changed files with 1 additions and 1 deletions

View File

@ -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) {