diff options
author | Lad, Prabhakar <prabhakar.csengg@gmail.com> | 2014-01-16 10:05:41 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-17 05:29:53 +0400 |
commit | 9b05f462b78852fcb2b0508148a855d47c6e5c02 (patch) | |
tree | 706e68fa3186f1711e3c1bd3f3dfc40df4c932cd /drivers/net/ethernet/ti/davinci_mdio.c | |
parent | 3ec775b9fb950db19175ab7984a0d65fda1142b4 (diff) | |
download | linux-9b05f462b78852fcb2b0508148a855d47c6e5c02.tar.xz |
net: davinci_mdio: Fix sparse warning
This patch fixes following sparse warning
davinci_mdio.c:85:27: warning: symbol 'default_pdata' was not declared. Should it be static?
Also makes the default_pdata as a constant.
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/davinci_mdio.c')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_mdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c index 4ec92659a100..0cca9dec5d82 100644 --- a/drivers/net/ethernet/ti/davinci_mdio.c +++ b/drivers/net/ethernet/ti/davinci_mdio.c @@ -82,7 +82,7 @@ struct davinci_mdio_regs { } user[0]; }; -struct mdio_platform_data default_pdata = { +static const struct mdio_platform_data default_pdata = { .bus_freq = DEF_OUT_FREQ, }; |