[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1456123773-1016-3-git-send-email-yangbo.lu@nxp.com>
Date: Mon, 22 Feb 2016 14:49:32 +0800
From: Yangbo Lu <yangbo.lu@....com>
To: <netdev@...r.kernel.org>,
Claudiu Manoil <claudiu.manoil@...escale.com>
CC: Yangbo Lu <yangbo.lu@....com>
Subject: [PATCH 2/3] gianfar_ptp: fix endianness in get_of_u32()
Signed-off-by: Yangbo Lu <yangbo.lu@....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
Powered by blists - more mailing lists