diff options
author | Hans de Goede <hdegoede@redhat.com> | 2018-11-21 10:19:55 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-12-06 23:14:59 +0100 |
commit | 0544ee4b1ad574aec3b6379af5f5cdee42840971 (patch) | |
tree | af92ad81a57b89225629ec628502c508f0ee3bf4 /drivers/i2c/busses/i2c-uniphier-f.c | |
parent | 6c7f25cae54b840302e4f1b371dbf318fbf09ab2 (diff) |
i2c: scmi: Fix probe error on devices with an empty SMB0001 ACPI device node
Some AMD based HP laptops have a SMB0001 ACPI device node which does not
define any methods.
This leads to the following error in dmesg:
[ 5.222731] cmi: probe of SMB0001:00 failed with error -5
This commit makes acpi_smbus_cmi_add() return -ENODEV instead in this case
silencing the error. In case of a failure of the i2c_add_adapter() call
this commit now propagates the error from that call instead of -EIO.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-uniphier-f.c')
0 files changed, 0 insertions, 0 deletions