aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2020-05-17 18:24:11 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2020-06-29 22:36:35 +0200
commitb9c52c50905cfd5973418e925e72c3bbefc7eb34 (patch)
tree71dfaa27b02673a43119b620fd19da838bec6fe3
parent0b7d95531cf25a7c71bd9855135da5e7098e7b97 (diff)
downloadu-boot-b9c52c50905cfd5973418e925e72c3bbefc7eb34.zip
u-boot-b9c52c50905cfd5973418e925e72c3bbefc7eb34.tar.gz
u-boot-b9c52c50905cfd5973418e925e72c3bbefc7eb34.tar.bz2
net: pcnet: Drop typedef struct pcnet_priv_t
Use struct pcnet_priv all over the place instead. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r--drivers/net/pcnet.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c
index 260a5a3..c6f080d 100644
--- a/drivers/net/pcnet.c
+++ b/drivers/net/pcnet.c
@@ -76,15 +76,15 @@ struct pcnet_uncached_priv {
struct pcnet_init_block init_block;
};
-typedef struct pcnet_priv {
+struct pcnet_priv {
struct pcnet_uncached_priv *uc;
/* Receive Buffer space */
unsigned char (*rx_buf)[RX_RING_SIZE][PKT_BUF_SZ + 4];
int cur_rx;
int cur_tx;
-} pcnet_priv_t;
+};
-static pcnet_priv_t *lp;
+static struct pcnet_priv *lp;
/* Offsets from base I/O address for WIO mode */
#define PCNET_RDP 0x10
@@ -340,9 +340,9 @@ static int pcnet_init(struct eth_device *dev, bd_t *bis)
* must be aligned on 16-byte boundaries.
*/
if (lp == NULL) {
- addr = (unsigned long)malloc(sizeof(pcnet_priv_t) + 0x10);
+ addr = (unsigned long)malloc(sizeof(*lp) + 0x10);
addr = (addr + 0xf) & ~0xf;
- lp = (pcnet_priv_t *)addr;
+ lp = (struct pcnet_priv *)addr;
addr = (unsigned long)memalign(ARCH_DMA_MINALIGN,
sizeof(*lp->uc));