net: davinci_mdio: Fix sparse warning
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Thu, 16 Jan 2014 06:05:41 +0000 (11:35 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jan 2014 01:29:53 +0000 (17:29 -0800)
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>
drivers/net/ethernet/ti/davinci_mdio.c

index 4ec92659a100109736675d770956341bbfe7c591..0cca9dec5d8277542a4439aed4bb8953f3943b29 100644 (file)
@@ -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,
 };