diff options
Diffstat (limited to 'drivers/rapidio/rio-sysfs.c')
-rw-r--r-- | drivers/rapidio/rio-sysfs.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/rapidio/rio-sysfs.c b/drivers/rapidio/rio-sysfs.c index 0c4473e54f86..9331be646dc3 100644 --- a/drivers/rapidio/rio-sysfs.c +++ b/drivers/rapidio/rio-sysfs.c | |||
@@ -84,6 +84,15 @@ static ssize_t lnext_show(struct device *dev, | |||
84 | return str - buf; | 84 | return str - buf; |
85 | } | 85 | } |
86 | 86 | ||
87 | static ssize_t modalias_show(struct device *dev, | ||
88 | struct device_attribute *attr, char *buf) | ||
89 | { | ||
90 | struct rio_dev *rdev = to_rio_dev(dev); | ||
91 | |||
92 | return sprintf(buf, "rapidio:v%04Xd%04Xav%04Xad%04X\n", | ||
93 | rdev->vid, rdev->did, rdev->asm_vid, rdev->asm_did); | ||
94 | } | ||
95 | |||
87 | struct device_attribute rio_dev_attrs[] = { | 96 | struct device_attribute rio_dev_attrs[] = { |
88 | __ATTR_RO(did), | 97 | __ATTR_RO(did), |
89 | __ATTR_RO(vid), | 98 | __ATTR_RO(vid), |
@@ -93,6 +102,7 @@ struct device_attribute rio_dev_attrs[] = { | |||
93 | __ATTR_RO(asm_rev), | 102 | __ATTR_RO(asm_rev), |
94 | __ATTR_RO(lprev), | 103 | __ATTR_RO(lprev), |
95 | __ATTR_RO(destid), | 104 | __ATTR_RO(destid), |
105 | __ATTR_RO(modalias), | ||
96 | __ATTR_NULL, | 106 | __ATTR_NULL, |
97 | }; | 107 | }; |
98 | 108 | ||