summaryrefslogtreecommitdiffstats
path: root/drivers/char/ds1620.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-30 13:26:37 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 14:13:10 -0400
commite784788ddb7000dbea8bd2986a3f83c4d77f96ff (patch)
treeb542d12760edac644ae39f0f3c6cef0f49882eff /drivers/char/ds1620.c
parent96e7d9158f5ae91accb9c81cca14bcd0c996c0cc (diff)
downloadblackbird-op-linux-e784788ddb7000dbea8bd2986a3f83c4d77f96ff.tar.gz
blackbird-op-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 'drivers/char/ds1620.c')
-rw-r--r--drivers/char/ds1620.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/char/ds1620.c b/drivers/char/ds1620.c
index 24ffd8cec51e..b599fae698df 100644
--- a/drivers/char/ds1620.c
+++ b/drivers/char/ds1620.c
@@ -397,10 +397,9 @@ static int __init ds1620_init(void)
return ret;
#ifdef THERM_USE_PROC
- proc_therm_ds1620 = create_proc_entry("therm", 0, NULL);
- if (proc_therm_ds1620)
- proc_therm_ds1620->read_proc = proc_therm_ds1620_read;
- else
+ proc_therm_ds1620 = create_proc_read_entry("therm", 0, NULL,
+ proc_therm_ds1620_read, NULL);
+ if (!proc_therm_ds1620)
printk(KERN_ERR "therm: unable to register /proc/therm\n");
#endif
OpenPOWER on IntegriCloud