diff mbox

[U-Boot] drivers/net/mpc512x_fec.c: Fix build warning

Message ID 1337627632-28897-1-git-send-email-agust@denx.de
State Accepted
Commit c2996086c2b7b9574bf8eed6c9b971f44d7a81d3
Delegated to: Joe Hershberger
Headers show

Commit Message

Anatolij Gustschin May 21, 2012, 7:13 p.m. UTC
Fix:
mpc512x_fec.c: In function 'mpc512x_fec_initialize':
mpc512x_fec.c:634: warning: assignment from incompatible pointer type

Tested on mpc5121ads board using tftp and nfs commands.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
---
 drivers/net/mpc512x_fec.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Joe Hershberger May 21, 2012, 8:51 p.m. UTC | #1
On Mon, May 21, 2012 at 2:13 PM, Anatolij Gustschin <agust@denx.de> wrote:
> Fix:
> mpc512x_fec.c: In function 'mpc512x_fec_initialize':
> mpc512x_fec.c:634: warning: assignment from incompatible pointer type
>
> Tested on mpc5121ads board using tftp and nfs commands.
>
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> Cc: Joe Hershberger <joe.hershberger@gmail.com>

Applied, thanks.

-Joe
diff mbox

Patch

diff --git a/drivers/net/mpc512x_fec.c b/drivers/net/mpc512x_fec.c
index 0d5efd5..ad57d56 100644
--- a/drivers/net/mpc512x_fec.c
+++ b/drivers/net/mpc512x_fec.c
@@ -452,8 +452,8 @@  static void mpc512x_fec_halt (struct eth_device *dev)
 
 /********************************************************************/
 
-static int mpc512x_fec_send (struct eth_device *dev, volatile void *eth_data,
-		int data_length)
+static int mpc512x_fec_send(struct eth_device *dev, void *eth_data,
+			    int data_length)
 {
 	/*
 	 * This routine transmits one frame.  This routine only accepts