]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rtc: rtc-ds1742: make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Thu, 22 May 2014 00:43:50 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:50 +0000 (10:43 +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-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", },
        { }
 };