diff options
-rw-r--r-- | drivers/mmc/core/sdio_bus.c | 15 | ||||
-rw-r--r-- | drivers/ssb/main.c | 10 |
2 files changed, 6 insertions, 19 deletions
diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index 0713a8c71e54..233d0f9b3c4b 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c | |||
@@ -96,30 +96,23 @@ static int sdio_bus_match(struct device *dev, struct device_driver *drv) | |||
96 | } | 96 | } |
97 | 97 | ||
98 | static int | 98 | static int |
99 | sdio_bus_uevent(struct device *dev, char **envp, int num_envp, char *buf, | 99 | sdio_bus_uevent(struct device *dev, struct kobj_uevent_env *env) |
100 | int buf_size) | ||
101 | { | 100 | { |
102 | struct sdio_func *func = dev_to_sdio_func(dev); | 101 | struct sdio_func *func = dev_to_sdio_func(dev); |
103 | int i = 0, length = 0; | ||
104 | 102 | ||
105 | if (add_uevent_var(envp, num_envp, &i, | 103 | if (add_uevent_var(env, |
106 | buf, buf_size, &length, | ||
107 | "SDIO_CLASS=%02X", func->class)) | 104 | "SDIO_CLASS=%02X", func->class)) |
108 | return -ENOMEM; | 105 | return -ENOMEM; |
109 | 106 | ||
110 | if (add_uevent_var(envp, num_envp, &i, | 107 | if (add_uevent_var(env, |
111 | buf, buf_size, &length, | ||
112 | "SDIO_ID=%04X:%04X", func->vendor, func->device)) | 108 | "SDIO_ID=%04X:%04X", func->vendor, func->device)) |
113 | return -ENOMEM; | 109 | return -ENOMEM; |
114 | 110 | ||
115 | if (add_uevent_var(envp, num_envp, &i, | 111 | if (add_uevent_var(env, |
116 | buf, buf_size, &length, | ||
117 | "MODALIAS=sdio:c%02Xv%04Xd%04X", | 112 | "MODALIAS=sdio:c%02Xv%04Xd%04X", |
118 | func->class, func->vendor, func->device)) | 113 | func->class, func->vendor, func->device)) |
119 | return -ENOMEM; | 114 | return -ENOMEM; |
120 | 115 | ||
121 | envp[i] = NULL; | ||
122 | |||
123 | return 0; | 116 | return 0; |
124 | } | 117 | } |
125 | 118 | ||
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c index cfd13eb866b8..c12a741b5574 100644 --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c | |||
@@ -321,23 +321,17 @@ static int ssb_bus_match(struct device *dev, struct device_driver *drv) | |||
321 | return 0; | 321 | return 0; |
322 | } | 322 | } |
323 | 323 | ||
324 | static int ssb_device_uevent(struct device *dev, char **envp, int num_envp, | 324 | static int ssb_device_uevent(struct device *dev, struct kobj_uevent_env *env) |
325 | char *buffer, int buffer_size) | ||
326 | { | 325 | { |
327 | struct ssb_device *ssb_dev = dev_to_ssb_dev(dev); | 326 | struct ssb_device *ssb_dev = dev_to_ssb_dev(dev); |
328 | int ret, i = 0, length = 0; | ||
329 | 327 | ||
330 | if (!dev) | 328 | if (!dev) |
331 | return -ENODEV; | 329 | return -ENODEV; |
332 | 330 | ||
333 | ret = add_uevent_var(envp, num_envp, &i, | 331 | return add_uevent_var(env, |
334 | buffer, buffer_size, &length, | ||
335 | "MODALIAS=ssb:v%04Xid%04Xrev%02X", | 332 | "MODALIAS=ssb:v%04Xid%04Xrev%02X", |
336 | ssb_dev->id.vendor, ssb_dev->id.coreid, | 333 | ssb_dev->id.vendor, ssb_dev->id.coreid, |
337 | ssb_dev->id.revision); | 334 | ssb_dev->id.revision); |
338 | envp[i] = NULL; | ||
339 | |||
340 | return ret; | ||
341 | } | 335 | } |
342 | 336 | ||
343 | static struct bus_type ssb_bustype = { | 337 | static struct bus_type ssb_bustype = { |