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: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
27260530db
commit
94e5a2a88a
@@ -916,7 +916,7 @@ static const struct net_device_ops fs_enet_netdev_ops = {
|
||||
#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)
|
||||
{
|
||||
const struct of_device_id *match;
|
||||
@@ -1082,7 +1082,7 @@ static int fs_enet_remove(struct platform_device *ofdev)
|
||||
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
|
||||
{
|
||||
.compatible = "fsl,cpm1-scc-enet",
|
||||
|
||||
Reference in New Issue
Block a user