projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sh: Fix up switch_to() type casts.
[powerpc.git]
/
drivers
/
amba
/
bus.c
diff --git
a/drivers/amba/bus.c
b/drivers/amba/bus.c
index
fd54750
..
6b94fb7
100644
(file)
--- a/
drivers/amba/bus.c
+++ b/
drivers/amba/bus.c
@@
-44,17
+44,13
@@
static int amba_match(struct device *dev, struct device_driver *drv)
}
#ifdef CONFIG_HOTPLUG
}
#ifdef CONFIG_HOTPLUG
-static int amba_uevent(struct device *dev,
char **envp, int nr_env, char *buf, int bufsz
)
+static int amba_uevent(struct device *dev,
struct kobj_uevent_env *env
)
{
struct amba_device *pcdev = to_amba_device(dev);
{
struct amba_device *pcdev = to_amba_device(dev);
+ int retval = 0;
- if (nr_env < 2)
- return -ENOMEM;
-
- snprintf(buf, bufsz, "AMBA_ID=%08x", pcdev->periphid);
- *envp++ = buf;
- *envp++ = NULL;
- return 0;
+ retval = add_uevent_var(env, "AMBA_ID=%08x", pcdev->periphid);
+ return retval;
}
#else
#define amba_uevent NULL
}
#else
#define amba_uevent NULL