Commit 9b05f462 authored by Lad, Prabhakar's avatar Lad, Prabhakar Committed by David S. Miller

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: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3ec775b9
......@@ -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,
};
......
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