public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Yangbo Lu <yangbo.lu@nxp•com>
To: <netdev@vger•kernel.org>, Claudiu Manoil <claudiu.manoil@freescale•com>
Cc: Yangbo Lu <yangbo.lu@nxp•com>
Subject: [PATCH 2/3] gianfar_ptp: fix endianness in get_of_u32()
Date: Mon, 22 Feb 2016 14:49:32 +0800	[thread overview]
Message-ID: <1456123773-1016-3-git-send-email-yangbo.lu@nxp.com> (raw)
In-Reply-To: <1456123773-1016-1-git-send-email-yangbo.lu@nxp.com>

Signed-off-by: Yangbo Lu <yangbo.lu@nxp•com>
---
 drivers/net/ethernet/freescale/gianfar_ptp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/freescale/gianfar_ptp.c b/drivers/net/ethernet/freescale/gianfar_ptp.c
index b40fba9..a86145c 100644
--- a/drivers/net/ethernet/freescale/gianfar_ptp.c
+++ b/drivers/net/ethernet/freescale/gianfar_ptp.c
@@ -431,7 +431,7 @@ static int get_of_u32(struct device_node *node, char *str, u32 *val)
 
 	if (!prop || plen != sizeof(*prop))
 		return -1;
-	*val = *prop;
+	*val = be32_to_cpu(*prop);
 	return 0;
 }
 
-- 
2.1.0.27.g96db324

  parent reply	other threads:[~2016-02-22  7:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-22  6:49 [PATCH 0/3] Patchset for gianfar ptp driver Yangbo Lu
2016-02-22  6:49 ` [PATCH 1/3] ARM: dts: ls1021a: add 1588 timer node Yangbo Lu
2016-02-22  8:49   ` Richard Cochran
2016-02-24  9:24     ` Yangbo Lu
2016-02-22  6:49 ` Yangbo Lu [this message]
2016-02-22  8:35   ` [PATCH 2/3] gianfar_ptp: fix endianness in get_of_u32() Richard Cochran
2016-02-24  9:23     ` Yangbo Lu
2016-02-22  8:50   ` Richard Cochran
2016-02-22  6:49 ` [PATCH 3/3] gianfar: fix endianness for hardware timestamp Yangbo Lu
2016-02-22  8:48   ` Richard Cochran
2016-02-24  9:24     ` Yangbo Lu
2016-02-24 10:14       ` YOSHIFUJI Hideaki
2016-02-22  8:51   ` Richard Cochran
2016-02-22  8:32 ` [PATCH 0/3] Patchset for gianfar ptp driver Richard Cochran
2016-02-24  9:21   ` Yangbo Lu

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=1456123773-1016-3-git-send-email-yangbo.lu@nxp.com \
    --to=yangbo.lu@nxp$(echo .)com \
    --cc=claudiu.manoil@freescale$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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