git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
drivers
/
pci
/
hotplug
/
shpchp_sysfs.c
diff --git
a/drivers/pci/hotplug/shpchp_sysfs.c
b/drivers/pci/hotplug/shpchp_sysfs.c
index
620e113
..
29fa9d2
100644
(file)
--- a/
drivers/pci/hotplug/shpchp_sysfs.c
+++ b/
drivers/pci/hotplug/shpchp_sysfs.c
@@
-91,9
+91,9
@@
static ssize_t show_ctrl (struct device *dev, struct device_attribute *attr, cha
}
static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL);
}
static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL);
-
void
shpchp_create_ctrl_files (struct controller *ctrl)
+
int __must_check
shpchp_create_ctrl_files (struct controller *ctrl)
{
{
- device_create_file (&ctrl->pci_dev->dev, &dev_attr_ctrl);
+
return
device_create_file (&ctrl->pci_dev->dev, &dev_attr_ctrl);
}
void shpchp_remove_ctrl_files(struct controller *ctrl)
}
void shpchp_remove_ctrl_files(struct controller *ctrl)