mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 16:40:44 +09:00
ppc: Fix warning in TSEC Ethernet driver
Fixes: tsec.c: In function 'tsec_initialize': tsec.c:638:12: warning: assignment from incompatible pointer type Tested on MPC8313e-RDB Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
c2996086c2
commit
c8a60b5326
@ -44,8 +44,7 @@ static RTXBD rtx __attribute__ ((aligned(8)));
|
|||||||
#error "rtx must be 64-bit aligned"
|
#error "rtx must be 64-bit aligned"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int tsec_send(struct eth_device *dev,
|
static int tsec_send(struct eth_device *dev, void *packet, int length);
|
||||||
volatile void *packet, int length);
|
|
||||||
|
|
||||||
/* Default initializations for TSEC controllers. */
|
/* Default initializations for TSEC controllers. */
|
||||||
|
|
||||||
@ -377,7 +376,7 @@ static void startup_tsec(struct eth_device *dev)
|
|||||||
* do the same. Presumably, this would be zero if there were no
|
* do the same. Presumably, this would be zero if there were no
|
||||||
* errors
|
* errors
|
||||||
*/
|
*/
|
||||||
static int tsec_send(struct eth_device *dev, volatile void *packet, int length)
|
static int tsec_send(struct eth_device *dev, void *packet, int length)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user