summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-06-06 14:35:56 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 16:08:07 -0700
commit8c5bfac0ffd172f3d81be091050fca2aa544ed6e (patch)
treebd847c26c0510918c5e80500e7e0638091849328
parente524360bff8627a7b07424814fe8eec7307c46a2 (diff)
downloadop-kernel-dev-8c5bfac0ffd172f3d81be091050fca2aa544ed6e.zip
op-kernel-dev-8c5bfac0ffd172f3d81be091050fca2aa544ed6e.tar.gz
rtc: isl12057: 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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/rtc/rtc-isl12057.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-isl12057.c b/drivers/rtc/rtc-isl12057.c
index 41bd76a..455b601 100644
--- a/drivers/rtc/rtc-isl12057.c
+++ b/drivers/rtc/rtc-isl12057.c
@@ -278,7 +278,7 @@ static int isl12057_probe(struct i2c_client *client,
}
#ifdef CONFIG_OF
-static struct of_device_id isl12057_dt_match[] = {
+static const struct of_device_id isl12057_dt_match[] = {
{ .compatible = "isl,isl12057" },
{ },
};
OpenPOWER on IntegriCloud