git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45ff34d
)
hwmon: (ads7871) Fix ads7871_probe error paths
author
Axel Lin
<axel.lin@gmail.com>
Wed, 25 Aug 2010 13:42:10 +0000
(15:42 +0200)
committer
Jean Delvare
<khali@linux-fr.org>
Wed, 25 Aug 2010 13:42:10 +0000
(15:42 +0200)
1. remove 'status' variable
2. remove unneeded initialization of 'err' variable
3. return missing error code if sysfs_create_group fail.
4. fix the init sequence as:
- check hardware existence
- kzalloc for ads7871_data
- sysfs_create_group
- hwmon_device_register
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/ads7871.c
patch
|
blob
|
history
diff --cc
drivers/hwmon/ads7871.c
Simple merge