diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/base/driver.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/base/driver.c')
-rw-r--r-- | drivers/base/driver.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/base/driver.c b/drivers/base/driver.c index f367885a7646..b631f7c59453 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/device.h> | 13 | #include <linux/device.h> |
14 | #include <linux/module.h> | 14 | #include <linux/module.h> |
15 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
16 | #include <linux/slab.h> | ||
16 | #include <linux/string.h> | 17 | #include <linux/string.h> |
17 | #include "base.h" | 18 | #include "base.h" |
18 | 19 | ||
@@ -98,7 +99,7 @@ EXPORT_SYMBOL_GPL(driver_find_device); | |||
98 | * @attr: driver attribute descriptor. | 99 | * @attr: driver attribute descriptor. |
99 | */ | 100 | */ |
100 | int driver_create_file(struct device_driver *drv, | 101 | int driver_create_file(struct device_driver *drv, |
101 | struct driver_attribute *attr) | 102 | const struct driver_attribute *attr) |
102 | { | 103 | { |
103 | int error; | 104 | int error; |
104 | if (drv) | 105 | if (drv) |
@@ -115,7 +116,7 @@ EXPORT_SYMBOL_GPL(driver_create_file); | |||
115 | * @attr: driver attribute descriptor. | 116 | * @attr: driver attribute descriptor. |
116 | */ | 117 | */ |
117 | void driver_remove_file(struct device_driver *drv, | 118 | void driver_remove_file(struct device_driver *drv, |
118 | struct driver_attribute *attr) | 119 | const struct driver_attribute *attr) |
119 | { | 120 | { |
120 | if (drv) | 121 | if (drv) |
121 | sysfs_remove_file(&drv->p->kobj, &attr->attr); | 122 | sysfs_remove_file(&drv->p->kobj, &attr->attr); |