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:
parent
4a04187008
commit
cf6b62d904
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue