From: Markus Pargmann <mpa@pengutronix.de>
To: "David S. Miller" <davem@davemloft.net>
Cc: Florian Fainelli <florian@openwrt.org>,
Mugunthan V N <mugunthanvnm@ti.com>,
linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org,
kernel@pengutronix.de, Markus Pargmann <mpa@pengutronix.de>
Subject: [PATCH 2/2] net/ethernet: cpsw: DT read bool dual_emac
Date: Fri, 4 Oct 2013 14:44:40 +0200 [thread overview]
Message-ID: <1380890680-30941-2-git-send-email-mpa@pengutronix.de> (raw)
In-Reply-To: <1380890680-30941-1-git-send-email-mpa@pengutronix.de>
Signed-off-by: Markus Pargmann <mpa@pengutronix.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
next prev parent reply other threads:[~2013-10-04 12:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-04 12:44 [PATCH 1/2] net: ethernet: cpsw: Search childs for slave nodes Markus Pargmann
2013-10-04 12:44 ` Markus Pargmann [this message]
2013-10-04 13:28 ` [PATCH 2/2] net/ethernet: cpsw: DT read bool dual_emac Mugunthan V N
2013-10-04 15:24 ` Peter Korsgaard
2013-10-07 19:19 ` David Miller
2013-10-04 13:27 ` [PATCH 1/2] net: ethernet: cpsw: Search childs for slave nodes Mugunthan V N
2013-10-04 15:24 ` Peter Korsgaard
2013-10-07 19:19 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1380890680-30941-2-git-send-email-mpa@pengutronix.de \
--to=mpa@pengutronix.de \
--cc=davem@davemloft.net \
--cc=florian@openwrt.org \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mugunthanvnm@ti.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).