Commit a455fcd7 authored by Colin Ian King's avatar Colin Ian King Committed by Jakub Kicinski

net: dwc-xlgmac: Fix spelling mistake in function name

There is a spelling mistake in the function name alloc_channles_and_rings.
Fix this by renaming it to alloc_channels_and_rings.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210204094944.51460-1-colin.king@canonical.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c1fcda2b
...@@ -634,7 +634,7 @@ static int xlgmac_map_tx_skb(struct xlgmac_channel *channel, ...@@ -634,7 +634,7 @@ static int xlgmac_map_tx_skb(struct xlgmac_channel *channel,
void xlgmac_init_desc_ops(struct xlgmac_desc_ops *desc_ops) void xlgmac_init_desc_ops(struct xlgmac_desc_ops *desc_ops)
{ {
desc_ops->alloc_channles_and_rings = xlgmac_alloc_channels_and_rings; desc_ops->alloc_channels_and_rings = xlgmac_alloc_channels_and_rings;
desc_ops->free_channels_and_rings = xlgmac_free_channels_and_rings; desc_ops->free_channels_and_rings = xlgmac_free_channels_and_rings;
desc_ops->map_tx_skb = xlgmac_map_tx_skb; desc_ops->map_tx_skb = xlgmac_map_tx_skb;
desc_ops->map_rx_buffer = xlgmac_map_rx_buffer; desc_ops->map_rx_buffer = xlgmac_map_rx_buffer;
......
...@@ -654,7 +654,7 @@ static int xlgmac_open(struct net_device *netdev) ...@@ -654,7 +654,7 @@ static int xlgmac_open(struct net_device *netdev)
pdata->rx_buf_size = ret; pdata->rx_buf_size = ret;
/* Allocate the channels and rings */ /* Allocate the channels and rings */
ret = desc_ops->alloc_channles_and_rings(pdata); ret = desc_ops->alloc_channels_and_rings(pdata);
if (ret) if (ret)
return ret; return ret;
......
...@@ -379,7 +379,7 @@ struct xlgmac_channel { ...@@ -379,7 +379,7 @@ struct xlgmac_channel {
} ____cacheline_aligned; } ____cacheline_aligned;
struct xlgmac_desc_ops { struct xlgmac_desc_ops {
int (*alloc_channles_and_rings)(struct xlgmac_pdata *pdata); int (*alloc_channels_and_rings)(struct xlgmac_pdata *pdata);
void (*free_channels_and_rings)(struct xlgmac_pdata *pdata); void (*free_channels_and_rings)(struct xlgmac_pdata *pdata);
int (*map_tx_skb)(struct xlgmac_channel *channel, int (*map_tx_skb)(struct xlgmac_channel *channel,
struct sk_buff *skb); struct sk_buff *skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment