Geert Uytterhoeven fd8f64df95 mdio_bus: Fix init if CONFIG_RESET_CONTROLLER=n
Commit 1d4639567d97 ("mdio_bus: Fix PTR_ERR applied after initialization
to constant") accidentally changed a check from -ENOTSUPP to -ENOSYS,
causing failures if reset controller support is not enabled.  E.g. on
r7s72100/rskrza1:

    sh-eth e8203000.ethernet: MDIO init failed: -524
    sh-eth: probe of e8203000.ethernet failed with error -524

Seen on r8a7740/armadillo, r7s72100/rskrza1, and r7s9210/rza2mevb.

Fixes: 1d4639567d97 ("mdio_bus: Fix PTR_ERR applied after initialization to constant")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: YueHaibing <yuehaibing@huawei.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-11-19 08:34:15 -08:00
..
2019-11-01 09:30:48 -07:00
2019-10-23 06:26:33 -04:00
2019-11-15 13:02:34 -08:00
2019-09-19 14:14:28 -07:00
2019-09-18 11:14:31 -07:00
2019-11-15 08:47:34 -08:00
2019-09-22 12:02:21 -07:00
2019-10-27 15:57:19 +00:00
2019-10-25 14:25:15 +02:00
2019-10-18 22:29:36 -04:00
2019-09-23 17:20:40 -04:00
2019-09-29 10:33:41 -07:00
2019-11-08 18:15:55 -08:00
2019-10-15 23:51:36 +02:00
2019-09-23 19:16:01 -07:00
2019-10-23 15:31:17 -04:00
2019-09-22 10:55:08 -07:00
2019-09-22 11:05:43 -07:00
2019-10-22 17:55:51 +02:00
2019-11-11 09:14:36 -08:00
2019-10-26 19:47:31 +08:00
2019-09-17 18:40:42 -07:00
2019-11-02 11:15:52 -07:00
2019-09-18 11:14:31 -07:00
2019-10-15 14:07:01 -06:00
2019-09-18 11:05:34 -07:00