diff options
author | Matt Porter <mporter@kernel.crashing.org> | 2005-11-07 04:00:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:47 -0500 |
commit | 6978bbc097c2f665c336927a9d56ae39ef75fa56 (patch) | |
tree | 541673cd413025c09b52984c5dc0333133c46a71 /drivers/rapidio/rio-sysfs.c | |
parent | 2b0c28d7f8846f80a436093e906f5175d1fa8f55 (diff) |
[PATCH] rapidio: message interface updates
Updates the RIO messaging interface to pass a device instance into the
event registeration and callbacks.
Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/rapidio/rio-sysfs.c')
-rw-r--r-- | drivers/rapidio/rio-sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rapidio/rio-sysfs.c b/drivers/rapidio/rio-sysfs.c index 73218a37506d..30a11436e241 100644 --- a/drivers/rapidio/rio-sysfs.c +++ b/drivers/rapidio/rio-sysfs.c | |||
@@ -21,7 +21,7 @@ | |||
21 | /* Sysfs support */ | 21 | /* Sysfs support */ |
22 | #define rio_config_attr(field, format_string) \ | 22 | #define rio_config_attr(field, format_string) \ |
23 | static ssize_t \ | 23 | static ssize_t \ |
24 | field##_show(struct device *dev, char *buf) \ | 24 | field##_show(struct device *dev, struct device_attribute *attr, char *buf) \ |
25 | { \ | 25 | { \ |
26 | struct rio_dev *rdev = to_rio_dev(dev); \ | 26 | struct rio_dev *rdev = to_rio_dev(dev); \ |
27 | \ | 27 | \ |
@@ -35,7 +35,7 @@ rio_config_attr(asm_did, "0x%04x\n"); | |||
35 | rio_config_attr(asm_vid, "0x%04x\n"); | 35 | rio_config_attr(asm_vid, "0x%04x\n"); |
36 | rio_config_attr(asm_rev, "0x%04x\n"); | 36 | rio_config_attr(asm_rev, "0x%04x\n"); |
37 | 37 | ||
38 | static ssize_t routes_show(struct device *dev, char *buf) | 38 | static ssize_t routes_show(struct device *dev, struct device_attribute *attr, char *buf) |
39 | { | 39 | { |
40 | struct rio_dev *rdev = to_rio_dev(dev); | 40 | struct rio_dev *rdev = to_rio_dev(dev); |
41 | char *str = buf; | 41 | char *str = buf; |