diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-10-14 00:46:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-14 11:53:33 -0400 |
commit | 7ac0326c3fd3f7cd2426dbbce896a0f8c91b962f (patch) | |
tree | 9adb34ab779412430774a15e6efe9e8db5b8cd67 /drivers/ssb | |
parent | 4735b37cf434175c2b7b36b3b68f1e60e8ec8527 (diff) |
uevent environment changes fallout
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/ssb')
-rw-r--r-- | drivers/ssb/main.c | 10 |
1 files changed, 2 insertions, 8 deletions
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 = { |