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;
192192void devices_kset_move_last (struct device * dev );
193193
194194#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 );
197197#else
198198static inline int module_add_driver (struct module * mod ,
199199 struct device_driver * drv )
Original file line number Diff line number Diff line change 99#include <linux/string.h>
1010#include "base.h"
1111
12- static char * make_driver_name (struct device_driver * drv )
12+ static char * make_driver_name (const struct device_driver * drv )
1313{
1414 char * driver_name ;
1515
@@ -30,7 +30,7 @@ static void module_create_drivers_dir(struct module_kobject *mk)
3030 mutex_unlock (& drivers_dir_mutex );
3131}
3232
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 )
3434{
3535 char * driver_name ;
3636 struct module_kobject * mk = NULL ;
@@ -89,7 +89,7 @@ int module_add_driver(struct module *mod, struct device_driver *drv)
8989 return ret ;
9090}
9191
92- void module_remove_driver (struct device_driver * drv )
92+ void module_remove_driver (const struct device_driver * drv )
9393{
9494 struct module_kobject * mk = NULL ;
9595 char * driver_name ;
You can’t perform that action at this time.
0 commit comments