ISDN: struct device - replace bus_id with dev_name(), dev_set_name()
CC: Karsten Keil <kkeil@suse.de> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
81ff86a11f
commit
0162f3822c
|
@ -91,7 +91,7 @@ int mISDN_dsp_element_register(struct mISDN_dsp_element *elem)
|
|||
|
||||
entry->dev.class = elements_class;
|
||||
dev_set_drvdata(&entry->dev, elem);
|
||||
snprintf(entry->dev.bus_id, BUS_ID_SIZE, elem->name);
|
||||
dev_set_name(&entry->dev, elem->name);
|
||||
ret = device_register(&entry->dev);
|
||||
if (ret) {
|
||||
printk(KERN_ERR "%s: failed to register %s\n",
|
||||
|
|
Loading…
Reference in a new issue