hwmon: (ad7414) Return proper error code for ad7414_probe()
authorAxel Lin <axel.lin@gmail.com>
Tue, 9 Nov 2010 01:40:34 +0000 (20:40 -0500)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 11 Nov 2010 17:32:07 +0000 (09:32 -0800)
commitf0030d87be3cb2eb9eac633d09cb5d9f107ed0c6
treea75cfa0e336e81c5bfcbd958a98a153ec39c80d6
parentf7334b4ca9108a86b64fbd0f435f44b2113ee053
hwmon: (ad7414) Return proper error code for ad7414_probe()

Return proper error if i2c_check_functionality reports
the adapter does not support the capability we need.

Also remove unneeded initialization for err variable.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Sean MacLennan <smaclennan@pikatech.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/ad7414.c