diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-22 07:56:17 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-22 13:41:47 -0500 |
commit | 7c64a50414c74a3c04c227fce03cabaa13295e80 (patch) | |
tree | 99fc083bc79182c5b570a89338436aeced150f65 /drivers | |
parent | bf254f685c1c46ad3356534c52c239d1737b2617 (diff) | |
download | u-boot-imx-7c64a50414c74a3c04c227fce03cabaa13295e80.zip u-boot-imx-7c64a50414c74a3c04c227fce03cabaa13295e80.tar.gz u-boot-imx-7c64a50414c74a3c04c227fce03cabaa13295e80.tar.bz2 |
drivers/net/ns8382x.c: Fix compile warning
Fix this:
ns8382x.c: In function 'ns8382x_initialize':
ns8382x.c:352:13: warning: assignment from incompatible pointer type
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ns8382x.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ns8382x.c b/drivers/net/ns8382x.c index 11863fe..cfe1f34 100644 --- a/drivers/net/ns8382x.c +++ b/drivers/net/ns8382x.c @@ -258,8 +258,7 @@ static void ns8382x_init_txd(struct eth_device *dev); static void ns8382x_init_rxd(struct eth_device *dev); static void ns8382x_set_rx_mode(struct eth_device *dev); static void ns8382x_check_duplex(struct eth_device *dev); -static int ns8382x_send(struct eth_device *dev, volatile void *packet, - int length); +static int ns8382x_send(struct eth_device *dev, void *packet, int length); static int ns8382x_poll(struct eth_device *dev); static void ns8382x_disable(struct eth_device *dev); @@ -735,8 +734,7 @@ ns8382x_check_duplex(struct eth_device *dev) /* Function: ns8382x_send * Description: transmits a packet and waits for completion or timeout. * Returns: void. */ -static int -ns8382x_send(struct eth_device *dev, volatile void *packet, int length) +static int ns8382x_send(struct eth_device *dev, void *packet, int length) { u32 i, status = 0; vu_long tx_stat = 0; |