]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
net/ethernet: cpsw: DT read bool dual_emac
authorMarkus Pargmann <mpa@pengutronix.de>
Fri, 4 Oct 2013 12:44:40 +0000 (14:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Oct 2013 19:19:31 +0000 (15:19 -0400)
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c

index 5df50a96a1da43ba6f302b7f381f77bb8d84a0e2..804846eb5fc25c6c78fedecee447e3f04a908c90 100644 (file)
@@ -1771,8 +1771,8 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data,
        }
        data->mac_control = prop;
 
-       if (!of_property_read_u32(node, "dual_emac", &prop))
-               data->dual_emac = prop;
+       if (of_property_read_bool(node, "dual_emac"))
+               data->dual_emac = 1;
 
        /*
         * Populate all the child nodes here...