projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ec775b
)
net: davinci_mdio: Fix sparse warning
author
Lad, Prabhakar
<
[email protected]
>
Thu, 16 Jan 2014 06:05:41 +0000
(11:35 +0530)
committer
David S. Miller
<
[email protected]
>
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 <
[email protected]
>
Acked-by: Mugunthan V N <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/ti/davinci_mdio.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/davinci_mdio.c
b/drivers/net/ethernet/ti/davinci_mdio.c
index 4ec92659a100109736675d770956341bbfe7c591..0cca9dec5d8277542a4439aed4bb8953f3943b29 100644
(file)
--- 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 = {
+st
atic const st
ruct mdio_platform_data default_pdata = {
.bus_freq = DEF_OUT_FREQ,
};