Skip to content

Commit

Permalink
nubus: Don't use create_proc_entry()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dhowells authored and Al Viro committed Apr 9, 2013
1 parent 4554eb9 commit 8a25378
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/nubus/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ static void nubus_proc_subdir(struct nubus_dev* dev,
struct proc_dir_entry* e;

sprintf(name, "%x", ent.type);
e = create_proc_entry(name, S_IFREG | S_IRUGO |
S_IWUSR, parent);
#warning Need to set some I/O handlers here
e = create_proc_read_entry(name, S_IFREG | S_IRUGO | S_IWUSR,
parent, NULL, NULL);
if (!e) return;
}
}
Expand Down

0 comments on commit 8a25378

Please sign in to comment.