summaryrefslogtreecommitdiff
path: root/drivers/ide/amd74xx.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-08-25 13:42:10 (GMT)
committerJean Delvare <khali@linux-fr.org>2010-08-25 13:42:10 (GMT)
commitc12c507d7185fe4e8ada7ed9832957576eefecf8 (patch)
tree7ca8bd24b74d42bf84377614f023a7c3c40214d6 /drivers/ide/amd74xx.c
parent45ff34d32a19e9008e7202ba2a7c0d0f40420228 (diff)
downloadlinux-fsl-qoriq-c12c507d7185fe4e8ada7ed9832957576eefecf8.tar.xz
hwmon: (ads7871) Fix ads7871_probe error paths
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>
Diffstat (limited to 'drivers/ide/amd74xx.c')
0 files changed, 0 insertions, 0 deletions