rtc: rtc-ds1742: make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Fri, 6 Jun 2014 21:35:54 +0000 (14:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jun 2014 23:08:07 +0000 (16:08 -0700)
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-ds1742.c

index 942103dac30f0bf575d8f5f03d0852bb1c80bc85..c6b2191a4128215795e4407e6b5b35e3860cee9f 100644 (file)
@@ -219,7 +219,7 @@ static int ds1742_rtc_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id __maybe_unused ds1742_rtc_of_match[] = {
+static const struct of_device_id __maybe_unused ds1742_rtc_of_match[] = {
        { .compatible = "maxim,ds1742", },
        { }
 };