File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1108,8 +1108,8 @@ static int lowpan_enable_get(void *data, u64 *val)
1108
1108
return 0 ;
1109
1109
}
1110
1110
1111
- DEFINE_SIMPLE_ATTRIBUTE (lowpan_enable_fops , lowpan_enable_get ,
1112
- lowpan_enable_set , "%llu\n" );
1111
+ DEFINE_DEBUGFS_ATTRIBUTE (lowpan_enable_fops , lowpan_enable_get ,
1112
+ lowpan_enable_set , "%llu\n" );
1113
1113
1114
1114
static ssize_t lowpan_control_write (struct file * fp ,
1115
1115
const char __user * user_buffer ,
@@ -1278,9 +1278,10 @@ static struct notifier_block bt_6lowpan_dev_notifier = {
1278
1278
1279
1279
static int __init bt_6lowpan_init (void )
1280
1280
{
1281
- lowpan_enable_debugfs = debugfs_create_file ("6lowpan_enable" , 0644 ,
1282
- bt_debugfs , NULL ,
1283
- & lowpan_enable_fops );
1281
+ lowpan_enable_debugfs = debugfs_create_file_unsafe ("6lowpan_enable" ,
1282
+ 0644 , bt_debugfs ,
1283
+ NULL ,
1284
+ & lowpan_enable_fops );
1284
1285
lowpan_control_debugfs = debugfs_create_file ("6lowpan_control" , 0644 ,
1285
1286
bt_debugfs , NULL ,
1286
1287
& lowpan_control_fops );
You can’t perform that action at this time.
0 commit comments