]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rtc: rtc-mv: make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 14 May 2014 00:02:41 +0000 (10:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:02:41 +0000 (10:02 +1000)
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: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-mv.c

index d15a999363fce2808cfcba6089cf8282dfedc48a..6aaec2fc7c0d577bb83a43af7a73042c97ba9f75 100644 (file)
@@ -319,7 +319,7 @@ static int __exit mv_rtc_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id rtc_mv_of_match_table[] = {
+static const struct of_device_id rtc_mv_of_match_table[] = {
        { .compatible = "marvell,orion-rtc", },
        {}
 };