mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-02 07:31:11 +01:00
drivers/net/xilinx_ll_temac.c: Fix compile warning
Fix this: xilinx_ll_temac.c: In function 'xilinx_ll_temac_initialize': xilinx_ll_temac.c:332: warning: assignment from incompatible pointer type xilinx_ll_temac.c:340: warning: assignment from incompatible pointer type Signed-off-by: Stephan Linz <linz@li-pro.net>
This commit is contained in:
parent
bb90157492
commit
f22ff1ab09
4 changed files with 4 additions and 8 deletions
|
|
@ -102,8 +102,7 @@ int ll_temac_recv_fifo(struct eth_device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int ll_temac_send_fifo(struct eth_device *dev, volatile void *packet,
|
||||
int length)
|
||||
int ll_temac_send_fifo(struct eth_device *dev, void *packet, int length)
|
||||
{
|
||||
int i;
|
||||
u32 *buf = (u32 *)packet;
|
||||
|
|
|
|||
|
|
@ -116,7 +116,6 @@ int ll_temac_reset_fifo(struct eth_device *dev);
|
|||
int ll_temac_recv_fifo(struct eth_device *dev);
|
||||
|
||||
/* send buffered data to FIFO */
|
||||
int ll_temac_send_fifo(struct eth_device *dev, volatile void *packet,
|
||||
int length);
|
||||
int ll_temac_send_fifo(struct eth_device *dev, void *packet, int length);
|
||||
|
||||
#endif /* _XILINX_LL_TEMAC_FIFO_ */
|
||||
|
|
|
|||
|
|
@ -324,8 +324,7 @@ int ll_temac_recv_sdma(struct eth_device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int ll_temac_send_sdma(struct eth_device *dev, volatile void *packet,
|
||||
int length)
|
||||
int ll_temac_send_sdma(struct eth_device *dev, void *packet, int length)
|
||||
{
|
||||
unsigned timeout = 50; /* 1usec * 50 = 50usec */
|
||||
struct cdmac_bd *tx_dp = &cdmac_bd.tx[tx_idx];
|
||||
|
|
|
|||
|
|
@ -275,7 +275,6 @@ int ll_temac_reset_sdma(struct eth_device *dev);
|
|||
int ll_temac_recv_sdma(struct eth_device *dev);
|
||||
|
||||
/* send buffered data to SDMA */
|
||||
int ll_temac_send_sdma(struct eth_device *dev, volatile void *packet,
|
||||
int length);
|
||||
int ll_temac_send_sdma(struct eth_device *dev, void *packet, int length);
|
||||
|
||||
#endif /* _XILINX_LL_TEMAC_SDMA_ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue