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/arm/kernel/swp_emulate.c | |
parent | 96e7d9158f5ae91accb9c81cca14bcd0c996c0cc (diff) | |
download | op-kernel-dev-e784788ddb7000dbea8bd2986a3f83c4d77f96ff.zip op-kernel-dev-e784788ddb7000dbea8bd2986a3f83c4d77f96ff.tar.gz |
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/arm/kernel/swp_emulate.c')
-rw-r--r-- | arch/arm/kernel/swp_emulate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/kernel/swp_emulate.c b/arch/arm/kernel/swp_emulate.c index ab1017b..0bba47a 100644 --- a/arch/arm/kernel/swp_emulate.c +++ b/arch/arm/kernel/swp_emulate.c @@ -268,12 +268,11 @@ static int __init swp_emulation_init(void) #ifdef CONFIG_PROC_FS struct proc_dir_entry *res; - res = create_proc_entry("cpu/swp_emulation", S_IRUGO, NULL); + res = create_proc_read_entry("cpu/swp_emulation", S_IRUGO, NULL, + proc_read_status, NULL); if (!res) return -ENOMEM; - - res->read_proc = proc_read_status; #endif /* CONFIG_PROC_FS */ printk(KERN_NOTICE "Registering SWP/SWPB emulation handler\n"); |