Commit 94e5a2a8 authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller

net/fsl: constify of_device_id array

of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 27260530
...@@ -1057,7 +1057,7 @@ static int mpc52xx_fec_of_resume(struct platform_device *op) ...@@ -1057,7 +1057,7 @@ static int mpc52xx_fec_of_resume(struct platform_device *op)
} }
#endif #endif
static struct of_device_id mpc52xx_fec_match[] = { static const struct of_device_id mpc52xx_fec_match[] = {
{ .compatible = "fsl,mpc5200b-fec", }, { .compatible = "fsl,mpc5200b-fec", },
{ .compatible = "fsl,mpc5200-fec", }, { .compatible = "fsl,mpc5200-fec", },
{ .compatible = "mpc5200-fec", }, { .compatible = "mpc5200-fec", },
......
...@@ -134,7 +134,7 @@ static int mpc52xx_fec_mdio_remove(struct platform_device *of) ...@@ -134,7 +134,7 @@ static int mpc52xx_fec_mdio_remove(struct platform_device *of)
return 0; return 0;
} }
static struct of_device_id mpc52xx_fec_mdio_match[] = { static const struct of_device_id mpc52xx_fec_mdio_match[] = {
{ .compatible = "fsl,mpc5200b-mdio", }, { .compatible = "fsl,mpc5200b-mdio", },
{ .compatible = "fsl,mpc5200-mdio", }, { .compatible = "fsl,mpc5200-mdio", },
{ .compatible = "mpc5200b-fec-phy", }, { .compatible = "mpc5200b-fec-phy", },
......
...@@ -916,7 +916,7 @@ static const struct net_device_ops fs_enet_netdev_ops = { ...@@ -916,7 +916,7 @@ static const struct net_device_ops fs_enet_netdev_ops = {
#endif #endif
}; };
static struct of_device_id fs_enet_match[]; static const struct of_device_id fs_enet_match[];
static int fs_enet_probe(struct platform_device *ofdev) static int fs_enet_probe(struct platform_device *ofdev)
{ {
const struct of_device_id *match; const struct of_device_id *match;
...@@ -1082,7 +1082,7 @@ static int fs_enet_remove(struct platform_device *ofdev) ...@@ -1082,7 +1082,7 @@ static int fs_enet_remove(struct platform_device *ofdev)
return 0; return 0;
} }
static struct of_device_id fs_enet_match[] = { static const struct of_device_id fs_enet_match[] = {
#ifdef CONFIG_FS_ENET_HAS_SCC #ifdef CONFIG_FS_ENET_HAS_SCC
{ {
.compatible = "fsl,cpm1-scc-enet", .compatible = "fsl,cpm1-scc-enet",
......
...@@ -213,7 +213,7 @@ static int fs_enet_mdio_remove(struct platform_device *ofdev) ...@@ -213,7 +213,7 @@ static int fs_enet_mdio_remove(struct platform_device *ofdev)
return 0; return 0;
} }
static struct of_device_id fs_enet_mdio_bb_match[] = { static const struct of_device_id fs_enet_mdio_bb_match[] = {
{ {
.compatible = "fsl,cpm2-mdio-bitbang", .compatible = "fsl,cpm2-mdio-bitbang",
}, },
......
...@@ -95,7 +95,7 @@ static int fs_enet_fec_mii_write(struct mii_bus *bus, int phy_id, int location, ...@@ -95,7 +95,7 @@ static int fs_enet_fec_mii_write(struct mii_bus *bus, int phy_id, int location,
} }
static struct of_device_id fs_enet_mdio_fec_match[]; static const struct of_device_id fs_enet_mdio_fec_match[];
static int fs_enet_mdio_probe(struct platform_device *ofdev) static int fs_enet_mdio_probe(struct platform_device *ofdev)
{ {
const struct of_device_id *match; const struct of_device_id *match;
...@@ -208,7 +208,7 @@ static int fs_enet_mdio_remove(struct platform_device *ofdev) ...@@ -208,7 +208,7 @@ static int fs_enet_mdio_remove(struct platform_device *ofdev)
return 0; return 0;
} }
static struct of_device_id fs_enet_mdio_fec_match[] = { static const struct of_device_id fs_enet_mdio_fec_match[] = {
{ {
.compatible = "fsl,pq1-fec-mdio", .compatible = "fsl,pq1-fec-mdio",
}, },
......
...@@ -294,7 +294,7 @@ static void ucc_configure(phys_addr_t start, phys_addr_t end) ...@@ -294,7 +294,7 @@ static void ucc_configure(phys_addr_t start, phys_addr_t end)
#endif #endif
static struct of_device_id fsl_pq_mdio_match[] = { static const struct of_device_id fsl_pq_mdio_match[] = {
#if defined(CONFIG_GIANFAR) || defined(CONFIG_GIANFAR_MODULE) #if defined(CONFIG_GIANFAR) || defined(CONFIG_GIANFAR_MODULE)
{ {
.compatible = "fsl,gianfar-tbi", .compatible = "fsl,gianfar-tbi",
......
...@@ -3594,7 +3594,7 @@ static noinline void gfar_update_link_state(struct gfar_private *priv) ...@@ -3594,7 +3594,7 @@ static noinline void gfar_update_link_state(struct gfar_private *priv)
phy_print_status(phydev); phy_print_status(phydev);
} }
static struct of_device_id gfar_match[] = static const struct of_device_id gfar_match[] =
{ {
{ {
.type = "network", .type = "network",
......
...@@ -554,7 +554,7 @@ static int gianfar_ptp_remove(struct platform_device *dev) ...@@ -554,7 +554,7 @@ static int gianfar_ptp_remove(struct platform_device *dev)
return 0; return 0;
} }
static struct of_device_id match_table[] = { static const struct of_device_id match_table[] = {
{ .compatible = "fsl,etsec-ptp" }, { .compatible = "fsl,etsec-ptp" },
{}, {},
}; };
......
...@@ -3930,7 +3930,7 @@ static int ucc_geth_remove(struct platform_device* ofdev) ...@@ -3930,7 +3930,7 @@ static int ucc_geth_remove(struct platform_device* ofdev)
return 0; return 0;
} }
static struct of_device_id ucc_geth_match[] = { static const struct of_device_id ucc_geth_match[] = {
{ {
.type = "network", .type = "network",
.compatible = "ucc_geth", .compatible = "ucc_geth",
......
...@@ -307,7 +307,7 @@ static int xgmac_mdio_remove(struct platform_device *pdev) ...@@ -307,7 +307,7 @@ static int xgmac_mdio_remove(struct platform_device *pdev)
return 0; return 0;
} }
static struct of_device_id xgmac_mdio_match[] = { static const struct of_device_id xgmac_mdio_match[] = {
{ {
.compatible = "fsl,fman-xmdio", .compatible = "fsl,fman-xmdio",
}, },
......
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