Commit aeea6eb4c0c172bbb410fe1b8efac6831a01fa19

Authored by Jingoo Han
Committed by Brian Norris
1 parent f62cde49f9

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@samsung.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/mtd/devices/st_spi_fsm.c
... ... @@ -2058,7 +2058,7 @@
2058 2058 return mtd_device_unregister(&fsm->mtd);
2059 2059 }
2060 2060  
2061   -static struct of_device_id stfsm_match[] = {
  2061 +static const struct of_device_id stfsm_match[] = {
2062 2062 { .compatible = "st,spi-fsm", },
2063 2063 {},
2064 2064 };