From: Bartosz Golaszewski Date: Thu, 4 Dec 2014 16:45:53 +0000 (+0100) Subject: hwmon: (tmp401) Bail out from tmp401_probe() in case of write errors X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~25^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90652efeba1a05300931b3fad53540b9bca73948;p=pandora-kernel.git 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 Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed