ath79: ar7200 usb phy: simplify probe
authorRosen Penev <rosenp@gmail.com>
Wed, 11 Sep 2024 19:46:28 +0000 (12:46 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 7 Oct 2024 20:21:08 +0000 (22:21 +0200)
commit78d1689757f40bbf0674da7052706e15302c4e88
tree7f202496db6c00cb3b3dcf410e43bfd29cd02b89
parent06791742a0f269014d1724bedac73ed9935e3260
ath79: ar7200 usb phy: simplify probe

Even though optional is used, there's are still pointless NULL
assignments.

Use dev_err_probe to avoid manually handling EPROBE_DEFER.

Use devm_platform_iomap_resource. No struct resource needed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Tested-by: Shiji Yang <yangshiji66@qq.com> on NETGEAR R6100.
Link: https://github.com/openwrt/openwrt/pull/16519
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ath79/patches-6.6/700-phy-add-ath79-usb-phys.patch