ramips: 5.15: handle error from device_reset in SPI ralink driver
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 6 May 2023 01:33:54 +0000 (03:33 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:33 +0000 (03:15 +0200)
commit7a2a645801886e150269a8d00c748105774892f3
treefdfc9bdc826281482a171087a25ce1cdc4b4b72e
parent40c742908373171b70589b595c3c0587139f4ecd
ramips: 5.15: handle error from device_reset in SPI ralink driver

Handle error from device reset in SPI ralink driver fixing compilation
warning:

drivers/spi/spi-rt2880.c: In function 'rt2880_spi_probe':
drivers/spi/spi-rt2880.c:474:17: error: ignoring return value of 'device_reset' declared with attribute 'warn_unused_result' [-Werror=unused-result]
  474 |                 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/821-SPI-ralink-add-Ralink-SoC-spi-driver.patch