net: fec_mxc: use simpler runtime cpu dection macros
authorPeng Fan <van.freenix@gmail.com>
Mon, 23 May 2016 10:36:04 +0000 (18:36 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 24 May 2016 12:59:57 +0000 (14:59 +0200)
Use simpler runtime cpu dection macros.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/fec_mxc.c

index 3340dd256f6ed1db06f876305092eb9447a6cf1b..360f8e44d1017d9538a25496975727a645b8f6cc 100644 (file)
@@ -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);