aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nubus
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2013-04-04 11:44:51 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 14:16:38 -0400
commit8a25378e408022c441a1d27082fea9264323b7e7 (patch)
tree3dac7d86874e8fb58403187d0a8116a8bdf24337 /drivers/nubus
parent4554eb90659eb3132f41968b77511d7263b631f0 (diff)
nubus: Don't use create_proc_entry()
Don't use create_proc_entry() in nubus_proc_subdir(). The files created aren't given any way to use them, so for the moment use create_proc_read_entry() with a NULL accessor and generate a compile-time warning. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'drivers/nubus')
-rw-r--r--drivers/nubus/proc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/nubus/proc.c b/drivers/nubus/proc.c
index 208dd12825bc..bb1446bb2802 100644
--- a/drivers/nubus/proc.c
+++ b/drivers/nubus/proc.c
@@ -73,8 +73,9 @@ static void nubus_proc_subdir(struct nubus_dev* dev,
73 struct proc_dir_entry* e; 73 struct proc_dir_entry* e;
74 74
75 sprintf(name, "%x", ent.type); 75 sprintf(name, "%x", ent.type);
76 e = create_proc_entry(name, S_IFREG | S_IRUGO | 76#warning Need to set some I/O handlers here
77 S_IWUSR, parent); 77 e = create_proc_read_entry(name, S_IFREG | S_IRUGO | S_IWUSR,
78 parent, NULL, NULL);
78 if (!e) return; 79 if (!e) return;
79 } 80 }
80} 81}