Re: [PATCH net-next v5 04/12] net: dsa: lantiq_gswip: Use dev_err_probe where appropriate

From: Martin Schiller
Date: Thu Jun 13 2024 - 08:33:12 EST


On 2024-06-13 13:51, Vladimir Oltean wrote:
On Tue, Jun 11, 2024 at 03:54:26PM +0200, Martin Schiller wrote:
From: Martin Blumenstingl <martin.blumenstingl@xxxxxxxxxxxxxx>

dev_err_probe() can be used to simplify the existing code. Also it means
we get rid of the following warning which is seen whenever the PMAC
(Ethernet controller which connects to GSWIP's CPU port) has not been
probed yet:
gswip 1e108000.switch: dsa switch register failed: -517

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@xxxxxxxxxxxxxx>
Acked-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---

Needs your sign off.

Reviewed-by: Vladimir Oltean <olteanv@xxxxxxxxx>

Signed-off-by: Martin Schiller <ms@xxxxxxxxxx>