Skip to content

Commit

Permalink
net: broadcom: bcm4908_enet: fix minor typos
Browse files Browse the repository at this point in the history
1. Fix "ensable" typo noticed by Andrew
2. Fix chipset name in the struct net_device_ops variable

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rafał Miłecki authored and David S. Miller committed Feb 11, 2021
1 parent 7b778ae commit e394881
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/net/ethernet/broadcom/bcm4908_enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ static int bcm4908_enet_dma_init(struct bcm4908_enet *enet)
return 0;
}

static void bcm4908_enet_dma_tx_ring_ensable(struct bcm4908_enet *enet,
struct bcm4908_enet_dma_ring *ring)
static void bcm4908_enet_dma_tx_ring_enable(struct bcm4908_enet *enet,
struct bcm4908_enet_dma_ring *ring)
{
enet_write(enet, ring->cfg_block + ENET_DMA_CH_CFG, ENET_DMA_CH_CFG_ENABLE);
}
Expand Down Expand Up @@ -519,7 +519,7 @@ static int bcm4908_enet_start_xmit(struct sk_buff *skb, struct net_device *netde
buf_desc->addr = cpu_to_le32((uint32_t)slot->dma_addr);
buf_desc->ctl = cpu_to_le32(tmp);

bcm4908_enet_dma_tx_ring_ensable(enet, &enet->tx_ring);
bcm4908_enet_dma_tx_ring_enable(enet, &enet->tx_ring);

if (++ring->write_idx == ring->length - 1)
ring->write_idx = 0;
Expand Down Expand Up @@ -583,7 +583,7 @@ static int bcm4908_enet_poll(struct napi_struct *napi, int weight)
return handled;
}

static const struct net_device_ops bcm96xx_netdev_ops = {
static const struct net_device_ops bcm4908_enet_netdev_ops = {
.ndo_open = bcm4908_enet_open,
.ndo_stop = bcm4908_enet_stop,
.ndo_start_xmit = bcm4908_enet_start_xmit,
Expand Down Expand Up @@ -623,7 +623,7 @@ static int bcm4908_enet_probe(struct platform_device *pdev)

SET_NETDEV_DEV(netdev, &pdev->dev);
eth_hw_addr_random(netdev);
netdev->netdev_ops = &bcm96xx_netdev_ops;
netdev->netdev_ops = &bcm4908_enet_netdev_ops;
netdev->min_mtu = ETH_ZLEN;
netdev->mtu = ENET_MTU_MAX;
netdev->max_mtu = ENET_MTU_MAX;
Expand Down

0 comments on commit e394881

Please sign in to comment.