提交 1ab2eaa2 编写于 作者: A Alexander Beregalov 提交者: Kyle McMartin

parisc: led: remove proc_dir_entry::owner

proc_dir_entry::owner was removed in 0702c1c1a4
(proc 2/2: remove struct proc_dir_entry::owner)
Signed-off-by: NAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
上级 47e669ce
...@@ -243,13 +243,11 @@ static int __init led_create_procfs(void) ...@@ -243,13 +243,11 @@ static int __init led_create_procfs(void)
proc_pdc_root = proc_mkdir("pdc", 0); proc_pdc_root = proc_mkdir("pdc", 0);
if (!proc_pdc_root) return -1; if (!proc_pdc_root) return -1;
proc_pdc_root->owner = THIS_MODULE;
ent = create_proc_entry("led", S_IFREG|S_IRUGO|S_IWUSR, proc_pdc_root); ent = create_proc_entry("led", S_IFREG|S_IRUGO|S_IWUSR, proc_pdc_root);
if (!ent) return -1; if (!ent) return -1;
ent->data = (void *)LED_NOLCD; /* LED */ ent->data = (void *)LED_NOLCD; /* LED */
ent->read_proc = led_proc_read; ent->read_proc = led_proc_read;
ent->write_proc = led_proc_write; ent->write_proc = led_proc_write;
ent->owner = THIS_MODULE;
if (led_type == LED_HASLCD) if (led_type == LED_HASLCD)
{ {
...@@ -258,7 +256,6 @@ static int __init led_create_procfs(void) ...@@ -258,7 +256,6 @@ static int __init led_create_procfs(void)
ent->data = (void *)LED_HASLCD; /* LCD */ ent->data = (void *)LED_HASLCD; /* LCD */
ent->read_proc = led_proc_read; ent->read_proc = led_proc_read;
ent->write_proc = led_proc_write; ent->write_proc = led_proc_write;
ent->owner = THIS_MODULE;
} }
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册