ramips: 5.15: handle return from device_reset in I2C driver
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 6 May 2023 20:40:39 +0000 (22:40 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:38 +0000 (03:15 +0200)
commitb786d744effff777ffa1fd478718ab9a7ab8a2e7
tree1aae14c4334bb16262ac1b722865b00afdd2e801
parent7f54fa575b33d266f91f67dbb9a0c2c0af7aca7e
ramips: 5.15: handle return from device_reset in I2C driver

Handle return from device reset in I2C driver. Don't fail on
device_reset error but print a warning.

Fix compilation warning:
sound/soc/ralink/ralink-i2s.c: In function 'ralink_i2s_probe':
sound/soc/ralink/ralink-i2s.c:885:9: error: ignoring return value of 'device_reset' declared with attribute 'warn_unused_result' [-Werror=unused-result]
  885 |         device_reset(&pdev->dev);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/ramips/patches-5.15/825-i2c-MIPS-adds-ralink-I2C-driver.patch