aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/driver.c')
-rw-r--r--drivers/base/driver.c5
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 */
100int driver_create_file(struct device_driver *drv, 101int 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 */
117void driver_remove_file(struct device_driver *drv, 118void 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);