Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68607
b: refs/heads/master
c: 7ac0326
h: refs/heads/master
i:
  68605: c54c971
  68603: 1baf4b4
  68599: 36e691a
  68591: e0c6b86
  68575: d22824c
  68543: 30ba5cc
  68479: 10c9597
  68351: fc9b973
  68095: 0004d0f
  67583: 7d723b3
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 14, 2007
1 parent 419aa27 commit 55b50b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4735b37cf434175c2b7b36b3b68f1e60e8ec8527
refs/heads/master: 7ac0326c3fd3f7cd2426dbbce896a0f8c91b962f
15 changes: 4 additions & 11 deletions trunk/drivers/mmc/core/sdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,30 +96,23 @@ static int sdio_bus_match(struct device *dev, struct device_driver *drv)
}

static int
sdio_bus_uevent(struct device *dev, char **envp, int num_envp, char *buf,
int buf_size)
sdio_bus_uevent(struct device *dev, struct kobj_uevent_env *env)
{
struct sdio_func *func = dev_to_sdio_func(dev);
int i = 0, length = 0;

if (add_uevent_var(envp, num_envp, &i,
buf, buf_size, &length,
if (add_uevent_var(env,
"SDIO_CLASS=%02X", func->class))
return -ENOMEM;

if (add_uevent_var(envp, num_envp, &i,
buf, buf_size, &length,
if (add_uevent_var(env,
"SDIO_ID=%04X:%04X", func->vendor, func->device))
return -ENOMEM;

if (add_uevent_var(envp, num_envp, &i,
buf, buf_size, &length,
if (add_uevent_var(env,
"MODALIAS=sdio:c%02Xv%04Xd%04X",
func->class, func->vendor, func->device))
return -ENOMEM;

envp[i] = NULL;

return 0;
}

Expand Down
10 changes: 2 additions & 8 deletions trunk/drivers/ssb/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,23 +321,17 @@ static int ssb_bus_match(struct device *dev, struct device_driver *drv)
return 0;
}

static int ssb_device_uevent(struct device *dev, char **envp, int num_envp,
char *buffer, int buffer_size)
static int ssb_device_uevent(struct device *dev, struct kobj_uevent_env *env)
{
struct ssb_device *ssb_dev = dev_to_ssb_dev(dev);
int ret, i = 0, length = 0;

if (!dev)
return -ENODEV;

ret = add_uevent_var(envp, num_envp, &i,
buffer, buffer_size, &length,
return add_uevent_var(env,
"MODALIAS=ssb:v%04Xid%04Xrev%02X",
ssb_dev->id.vendor, ssb_dev->id.coreid,
ssb_dev->id.revision);
envp[i] = NULL;

return ret;
}

static struct bus_type ssb_bustype = {
Expand Down

0 comments on commit 55b50b9

Please sign in to comment.