ath79: gpio-latch-mikrotik: use dev_err_probe
authorRosen Penev <[email protected]>
Thu, 15 Aug 2024 01:45:55 +0000 (18:45 -0700)
committerRobert Marko <[email protected]>
Wed, 25 Sep 2024 20:56:56 +0000 (22:56 +0200)
commit1e8dde776a25f2bedaf530f13ac8c45a18d47d00
tree200e187df4e8798c67f6f63113ad5908107f0e0e
parentd3dad5b10b443eb94cf482f92ae8929a722412d6
ath79: gpio-latch-mikrotik: use dev_err_probe

It automatically adds the error code at the end of the message. It also
deals with -EPROBE_DEFER automatically (doesn't output). Simpler code.

Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/16350
Signed-off-by: Robert Marko <[email protected]>
target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c