[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1380890680-30941-2-git-send-email-mpa@pengutronix.de>
Date: Fri, 4 Oct 2013 14:44:40 +0200
From: Markus Pargmann <mpa@...gutronix.de>
To: "David S. Miller" <davem@...emloft.net>
Cc: Florian Fainelli <florian@...nwrt.org>,
Mugunthan V N <mugunthanvnm@...com>,
linux-arm-kernel@...ts.infradead.org, netdev@...r.kernel.org,
kernel@...gutronix.de, Markus Pargmann <mpa@...gutronix.de>
Subject: [PATCH 2/2] net/ethernet: cpsw: DT read bool dual_emac
Signed-off-by: Markus Pargmann <mpa@...gutronix.de>
---
drivers/net/ethernet/ti/cpsw.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
index 5df50a9..804846e 100644
--- a/drivers/net/ethernet/ti/cpsw.c
+++ b/drivers/net/ethernet/ti/cpsw.c
@@ -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...
--
1.8.4.rc3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists