Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60576
b: refs/heads/master
c: 6758555
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse authored and Paul Mackerras committed Jun 28, 2007
1 parent cfb9f0e commit bf470ea
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 688b3378da9c3485630d4b0356d09bc2e69bb0bd
refs/heads/master: 6758555da6a171d3f21ce36c0e12a2b8cff7ca9d
15 changes: 15 additions & 0 deletions trunk/arch/powerpc/platforms/ps3/system-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,13 +452,28 @@ static int ps3_system_bus_uevent(struct device *_dev, char **envp,
return 0;
}

static ssize_t modalias_show(struct device *_dev, struct device_attribute *a,
char *buf)
{
struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev);
int len = snprintf(buf, PAGE_SIZE, "ps3:%d\n", dev->match_id);

return (len >= PAGE_SIZE) ? (PAGE_SIZE - 1) : len;
}

static struct device_attribute ps3_system_bus_dev_attrs[] = {
__ATTR_RO(modalias),
__ATTR_NULL,
};

struct bus_type ps3_system_bus_type = {
.name = "ps3_system_bus",
.match = ps3_system_bus_match,
.uevent = ps3_system_bus_uevent,
.probe = ps3_system_bus_probe,
.remove = ps3_system_bus_remove,
.shutdown = ps3_system_bus_shutdown,
.dev_attrs = ps3_system_bus_dev_attrs,
};

static int __init ps3_system_bus_init(void)
Expand Down

0 comments on commit bf470ea

Please sign in to comment.