]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/amba/bus.c
ide-cd: add TEAC CD-224E to the NO_AUTOCLOSE list
[linux-2.6-omap-h63xx.git] / drivers / amba / bus.c
index fd5475071accea2d48ff5ec7f15270d61409a27b..6b94fb7be5f280bbe2a8e5c0ddace6355cae0185 100644 (file)
@@ -44,17 +44,13 @@ static int amba_match(struct device *dev, struct device_driver *drv)
 }
 
 #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);
+       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