summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2014-12-04 17:45:53 +0100
committerGuenter Roeck <linux@roeck-us.net>2014-12-04 11:00:44 -0800
commit90652efeba1a05300931b3fad53540b9bca73948 (patch)
tree56808b0109321ced1c6c4142aa90eb2e5d7a4b0b /init
parent06adbaec2a7a3d04741557b411e264c7f9c91c85 (diff)
downloadlinux-next-90652efeba1a05300931b3fad53540b9bca73948.tar.gz
hwmon: (tmp401) Bail out from tmp401_probe() in case of write errors
The return value of i2c_smbus_read_byte_data() is checked in tmp401_init_client(), but only a warning is printed and the device is registered anyway. This leads to devices being registered even if they cannot be physically detected. Bail out from probe in case of write errors and notify the user. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions