File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -192,8 +192,8 @@ extern struct kset *devices_kset;
192
192
void devices_kset_move_last (struct device * dev );
193
193
194
194
#if defined(CONFIG_MODULES ) && defined(CONFIG_SYSFS )
195
- int module_add_driver (struct module * mod , struct device_driver * drv );
196
- void module_remove_driver (struct device_driver * drv );
195
+ int module_add_driver (struct module * mod , const struct device_driver * drv );
196
+ void module_remove_driver (const struct device_driver * drv );
197
197
#else
198
198
static inline int module_add_driver (struct module * mod ,
199
199
struct device_driver * drv )
Original file line number Diff line number Diff line change 9
9
#include <linux/string.h>
10
10
#include "base.h"
11
11
12
- static char * make_driver_name (struct device_driver * drv )
12
+ static char * make_driver_name (const struct device_driver * drv )
13
13
{
14
14
char * driver_name ;
15
15
@@ -30,7 +30,7 @@ static void module_create_drivers_dir(struct module_kobject *mk)
30
30
mutex_unlock (& drivers_dir_mutex );
31
31
}
32
32
33
- int module_add_driver (struct module * mod , struct device_driver * drv )
33
+ int module_add_driver (struct module * mod , const struct device_driver * drv )
34
34
{
35
35
char * driver_name ;
36
36
struct module_kobject * mk = NULL ;
@@ -89,7 +89,7 @@ int module_add_driver(struct module *mod, struct device_driver *drv)
89
89
return ret ;
90
90
}
91
91
92
- void module_remove_driver (struct device_driver * drv )
92
+ void module_remove_driver (const struct device_driver * drv )
93
93
{
94
94
struct module_kobject * mk = NULL ;
95
95
char * driver_name ;
You can’t perform that action at this time.
0 commit comments