Skip to content

Commit

Permalink
net: davinci_mdio: Fix sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lad, Prabhakar authored and David S. Miller committed Jan 17, 2014
1 parent 3ec775b commit 9b05f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/ti/davinci_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 9b05f46

Please sign in to comment.