aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parisc/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/parisc/led.c')
-rw-r--r--drivers/parisc/led.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c
index 75ff6d78f002..9581d3619450 100644
--- a/drivers/parisc/led.c
+++ b/drivers/parisc/led.c
@@ -243,13 +243,11 @@ static int __init led_create_procfs(void)
243 243
244 proc_pdc_root = proc_mkdir("pdc", 0); 244 proc_pdc_root = proc_mkdir("pdc", 0);
245 if (!proc_pdc_root) return -1; 245 if (!proc_pdc_root) return -1;
246 proc_pdc_root->owner = THIS_MODULE;
247 ent = create_proc_entry("led", S_IFREG|S_IRUGO|S_IWUSR, proc_pdc_root); 246 ent = create_proc_entry("led", S_IFREG|S_IRUGO|S_IWUSR, proc_pdc_root);
248 if (!ent) return -1; 247 if (!ent) return -1;
249 ent->data = (void *)LED_NOLCD; /* LED */ 248 ent->data = (void *)LED_NOLCD; /* LED */
250 ent->read_proc = led_proc_read; 249 ent->read_proc = led_proc_read;
251 ent->write_proc = led_proc_write; 250 ent->write_proc = led_proc_write;
252 ent->owner = THIS_MODULE;
253 251
254 if (led_type == LED_HASLCD) 252 if (led_type == LED_HASLCD)
255 { 253 {
@@ -258,7 +256,6 @@ static int __init led_create_procfs(void)
258 ent->data = (void *)LED_HASLCD; /* LCD */ 256 ent->data = (void *)LED_HASLCD; /* LCD */
259 ent->read_proc = led_proc_read; 257 ent->read_proc = led_proc_read;
260 ent->write_proc = led_proc_write; 258 ent->write_proc = led_proc_write;
261 ent->owner = THIS_MODULE;
262 } 259 }
263 260
264 return 0; 261 return 0;