ramips: cleanup ralink SPI driver
authorRosen Penev <rosenp@gmail.com>
Fri, 27 Sep 2024 00:22:29 +0000 (17:22 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 19 Oct 2024 17:28:08 +0000 (19:28 +0200)
commit4cca92af3735fe9e33d82b36bb7c2d4d4ea9971d
tree7a106d5ba319ecc0b1725bc0f6ab1b97521e8754
parenta6252a6dfcdddc5c2a97ac29695e9f9f004a4430
ramips: cleanup ralink SPI driver

Increase usage of devm to get rid of goto and _remove.

Get rid of hw_reset_count. It's not really used for anything.

Use dev_err_probe to handle potential EPROBE_DEFER.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16588
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ramips/patches-6.6/821-SPI-ralink-add-Ralink-SoC-spi-driver.patch