summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2024-06-29 20:37:15 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-07-04 13:03:01 +0300
commit249b4deaff71cfc6ac9a8e436af876be6d84052b (patch)
tree4559b71dccd45302e9e0a11c080a54b991b21169 /tools/perf/scripts/python/stackcollapse.py
parent79d0df36b54179ac2192e56ad7fdb29c952f35e2 (diff)
downloadlinux-249b4deaff71cfc6ac9a8e436af876be6d84052b.tar.xz
eeprom: ee1004: Call i2c_new_scanned_device to instantiate thermal sensor
Instantiating a device by calling i2c_new_client_device() assumes that the device is not already instantiated. If that is not the case, it will return an error and generate a misleading kernel log message. i2c i2c-0: Failed to register i2c client jc42 at 0x18 (-16) This can be reproduced by unloading the ee1004 driver and loading it again. Avoid this by calling i2c_new_scanned_device() instead, which returns silently if a device is already instantiated or does not exist. Fixes: 393bd1000f81 ("eeprom: ee1004: add support for temperature sensor") Cc: Heiner Kallweit <hkallweit1@gmail.com> Cc: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20240629173716.20389-1-linux@roeck-us.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions