diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-30 13:26:37 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-09 14:13:10 -0400 |
commit | e784788ddb7000dbea8bd2986a3f83c4d77f96ff (patch) | |
tree | b542d12760edac644ae39f0f3c6cef0f49882eff /arch/h8300/kernel | |
parent | 96e7d9158f5ae91accb9c81cca14bcd0c996c0cc (diff) | |
download | linux-e784788ddb7000dbea8bd2986a3f83c4d77f96ff.tar.gz linux-e784788ddb7000dbea8bd2986a3f83c4d77f96ff.tar.bz2 linux-e784788ddb7000dbea8bd2986a3f83c4d77f96ff.zip |
get rid of a bunch of open-coded create_proc_read_entry()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/h8300/kernel')
-rw-r--r-- | arch/h8300/kernel/gpio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/h8300/kernel/gpio.c b/arch/h8300/kernel/gpio.c index 6a25dd5530e7..f8a4f5b52697 100644 --- a/arch/h8300/kernel/gpio.c +++ b/arch/h8300/kernel/gpio.c @@ -158,9 +158,8 @@ static __init int register_proc(void) { struct proc_dir_entry *proc_gpio; - proc_gpio = create_proc_entry("gpio", S_IRUGO, NULL); - if (proc_gpio) - proc_gpio->read_proc = gpio_proc_read; + proc_gpio = create_proc_read_entry("gpio", S_IRUGO, NULL, + gpio_proc_read, NULL); return proc_gpio != NULL; } |