diff mbox

[U-Boot,13/28] net/phy/cortina: Fix compilation warning

Message ID 1426783559-26610-13-git-send-email-yorksun@freescale.com
State Superseded
Delegated to: York Sun
Headers show

Commit Message

York Sun March 19, 2015, 4:45 p.m. UTC
From: pankaj chauhan <pankaj.chauhan@freescale.com>

Fix comilation warning which is emitted when
firmware address is more than 32 bit.

Signed-off-by: pankaj chauhan <pankaj.chauhan@freescale.com>
CC: Joe Hershberger <joe.hershberger@ni.com>
---
 drivers/net/phy/cortina.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Joe Hershberger March 19, 2015, 5:17 p.m. UTC | #1
On Thu, Mar 19, 2015 at 11:45 AM, York Sun <yorksun@freescale.com> wrote:
>
> From: pankaj chauhan <pankaj.chauhan@freescale.com>
>
> Fix comilation warning which is emitted when
> firmware address is more than 32 bit.
>
> Signed-off-by: pankaj chauhan <pankaj.chauhan@freescale.com>
> CC: Joe Hershberger <joe.hershberger@ni.com>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>
diff mbox

Patch

diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c
index 254f056..3a2b3bb 100644
--- a/drivers/net/phy/cortina.c
+++ b/drivers/net/phy/cortina.c
@@ -186,8 +186,8 @@  void cs4340_upload_firmware(struct phy_device *phydev)
 		while (*addr != 0x0a) {
 			line_temp[i++] = *addr++;
 			if (0x50 < i) {
-				printf("Not found Cortina PHY ucode at 0x%x\n",
-				       CONFIG_CORTINA_FW_ADDR);
+				printf("Not found Cortina PHY ucode at 0x%p\n",
+				       (char *)CONFIG_CORTINA_FW_ADDR);
 				return;
 			}
 		}