summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Ortega Perez de Villar <luiorpe1@upv.es>2013-09-18 17:26:23 +0200
committerJavier Martinez Canillas <javier.martinez@collabora.co.uk>2013-09-28 13:35:44 +0200
commit89d013dca342fa4716f51774583ea1d539cd00e0 (patch)
tree13c0807b0ef5033cccf1c9925b5b7ad554f032ad
parentf59a47343b674c42429850665142d5585d9cc713 (diff)
downloadldd3-89d013dca342fa4716f51774583ea1d539cd00e0.tar.gz
lddbus: add member init_name to ldd_bus device declaration
The member init_name replaces bus_id, a string that identifies the device on the bus. This patch reverts commit bca2bf1d1d28deee3bef691371d9aae2cbbb0f4b
-rw-r--r--lddbus/lddbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lddbus/lddbus.c b/lddbus/lddbus.c
index f3101b1..24c8a96 100644
--- a/lddbus/lddbus.c
+++ b/lddbus/lddbus.c
@@ -32,8 +32,7 @@ static char *Version = "$Revision: 1.9 $";
*/
static int ldd_uevent(struct device *dev, struct kobj_uevent_env *env)
{
- if (add_uevent_var(env,
- "LDDBUS_VERSION=%s", Version))
+ if (add_uevent_var(env, "LDDBUS_VERSION=%s", Version))
return -ENOMEM;
return 0;
@@ -57,6 +56,7 @@ static void ldd_bus_release(struct device *dev)
}
struct device ldd_bus = {
+ .init_name = "ldd0",
.release = ldd_bus_release
};