Commit 131ac622 authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

staging: most: core: use device description as name

This patch uses the device description to clearly identity a device
attached to the bus. It is needed as the currently useed mdevX
notation is not sufficiant in case more than one network
interface controller is being used at the same time.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 360b921b
...@@ -1431,7 +1431,7 @@ int most_register_interface(struct most_interface *iface) ...@@ -1431,7 +1431,7 @@ int most_register_interface(struct most_interface *iface)
INIT_LIST_HEAD(&iface->p->channel_list); INIT_LIST_HEAD(&iface->p->channel_list);
iface->p->dev_id = id; iface->p->dev_id = id;
snprintf(iface->p->name, STRING_SIZE, "mdev%d", id); strcpy(iface->p->name, iface->description);
iface->dev.init_name = iface->p->name; iface->dev.init_name = iface->p->name;
iface->dev.bus = &mc.bus; iface->dev.bus = &mc.bus;
iface->dev.parent = &mc.dev; iface->dev.parent = &mc.dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment