From: Jingoo Han Date: Wed, 7 May 2014 08:46:59 +0000 (+0900) Subject: mtd: st_spi_fsm: Make of_device_id array const X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=aeea6eb4c0c172bbb410fe1b8efac6831a01fa19;p=linux-beck.git 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 Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c index f97fe144077d..d252514d3e98 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", }, {}, };