mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
get rid of a bunch of open-coded create_proc_read_entry()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
96e7d9158f
commit
e784788ddb
6 changed files with 11 additions and 22 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue