mtd: st_spi_fsm: Make of_device_id array const
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jun 10 23:59:07 PDT 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=aeea6eb4c0c172bbb410fe1b8efac6831a01fa19
Commit: aeea6eb4c0c172bbb410fe1b8efac6831a01fa19
Parent: f62cde49f9f02d6c205ab310b8fd4a29ddc49329
Author: Jingoo Han <jg1.han at samsung.com>
AuthorDate: Wed May 7 17:46:59 2014 +0900
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue May 20 16:35:29 2014 -0700
mtd: st_spi_fsm: Make of_device_id array const
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han at samsung.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/devices/st_spi_fsm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c
index f97fe14..d252514 100644
--- a/drivers/mtd/devices/st_spi_fsm.c
+++ b/drivers/mtd/devices/st_spi_fsm.c
@@ -2058,7 +2058,7 @@ static int stfsm_remove(struct platform_device *pdev)
return mtd_device_unregister(&fsm->mtd);
}
-static struct of_device_id stfsm_match[] = {
+static const struct of_device_id stfsm_match[] = {
{ .compatible = "st,spi-fsm", },
{},
};
More information about the linux-mtd-cvs
mailing list