summaryrefslogtreecommitdiffstats
path: root/drivers/net/stmmac/norm_desc.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2010-10-13 16:51:25 +0200
committerDavid S. Miller <davem@davemloft.net>2010-10-16 20:13:25 +0200
commitcadb7924b10b2a3117dafe14d6d6d28035ec4ddb (patch)
treed0f233d5868f2cde80bf60c13b390182f98894ea /drivers/net/stmmac/norm_desc.c
parentstmmac: make ethtool functions local (diff)
downloadlinux-cadb7924b10b2a3117dafe14d6d6d28035ec4ddb.tar.xz
linux-cadb7924b10b2a3117dafe14d6d6d28035ec4ddb.zip
stmmac: make function tables const
These tables only contain function pointers. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Gustavo F. Padovan <padovan@profusion.mobi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/stmmac/norm_desc.c')
-rw-r--r--drivers/net/stmmac/norm_desc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/stmmac/norm_desc.c b/drivers/net/stmmac/norm_desc.c
index 0dce90cb8124..cd0cc76f7a1c 100644
--- a/drivers/net/stmmac/norm_desc.c
+++ b/drivers/net/stmmac/norm_desc.c
@@ -202,7 +202,7 @@ static int ndesc_get_rx_frame_len(struct dma_desc *p)
return p->des01.rx.frame_length;
}
-struct stmmac_desc_ops ndesc_ops = {
+const struct stmmac_desc_ops ndesc_ops = {
.tx_status = ndesc_get_tx_status,
.rx_status = ndesc_get_rx_status,
.get_tx_len = ndesc_get_tx_len,