FEC_TYPE_IMX27 is 0 which meands device_get_match_data() returns NULL and the driver bails out on the error check of this function. Start counting the enum at one to pass the error check also on i.MX27.
Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de> --- drivers/net/fec_imx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fec_imx.h b/drivers/net/fec_imx.h index 1aaff87fdd..33b8db2745 100644 --- a/drivers/net/fec_imx.h +++ b/drivers/net/fec_imx.h @@ -114,7 +114,7 @@ struct buffer_descriptor { }; enum fec_type { - FEC_TYPE_IMX27, + FEC_TYPE_IMX27 = 1, FEC_TYPE_IMX28, FEC_TYPE_IMX6, }; -- 2.47.3