ramips: ethernet: ralink: allow to return EPROBE_DEFER on switch_init
authorAlexander Couzens <lynxis@fe80.eu>
Wed, 2 Jun 2021 00:01:53 +0000 (00:01 +0000)
committerAlexander Couzens <lynxis@fe80.eu>
Fri, 25 Jun 2021 08:52:50 +0000 (10:52 +0200)
commit74c58c9d5844d52e23a7fc52f4d45a5fedd06a2b
treea370d721bc23910b8289b39beded282447908290
parent60fadae62b64b14faff818e4156d9c6eb3f96b65
ramips: ethernet: ralink: allow to return EPROBE_DEFER on switch_init

For rt3050 the switch needs to be initialized before the ethernet start sending
packets. Allow switch_init to return -EPROBE_DEFER.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c