From: Peng Fan Date: Mon, 23 May 2016 10:36:04 +0000 (+0800) Subject: net: fec_mxc: use simpler runtime cpu dection macros X-Git-Tag: v2016.07-rc2~49^2~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=87f9989502763f36b1df94c909cbf05f65633fc4;p=u-boot net: fec_mxc: use simpler runtime cpu dection macros Use simpler runtime cpu dection macros. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Joe Hershberger --- diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 3340dd256f..360f8e44d1 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -566,7 +566,7 @@ static int fec_init(struct eth_device *dev, bd_t* bd) /* Do not access reserved register for i.MX6UL */ - if (!is_cpu_type(MXC_CPU_MX6UL)) { + if (!is_mx6ul()) { /* clear MIB RAM */ for (i = mib_ptr; i <= mib_ptr + 0xfc; i += 4) writel(0, i);