summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>2015-05-02 00:44:37 +0900
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-06-19 20:03:20 +0200
commitcd6ba00aaa8bb5335cf2aa4b98c0ac15ffc9000d (patch)
treea944529e4a01dcddf5f177022d191597efc7dfbd /drivers/rtc
parent19fd685fcb13fa3c0b1539c2f31e1add8ab63edf (diff)
downloadop-kernel-dev-cd6ba00aaa8bb5335cf2aa4b98c0ac15ffc9000d.zip
op-kernel-dev-cd6ba00aaa8bb5335cf2aa4b98c0ac15ffc9000d.tar.gz
rtc: mxc: Constify platform_device_id
The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-mxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-mxc.c b/drivers/rtc/rtc-mxc.c
index 09d422b..5fc292c 100644
--- a/drivers/rtc/rtc-mxc.c
+++ b/drivers/rtc/rtc-mxc.c
@@ -84,7 +84,7 @@ struct rtc_plat_data {
enum imx_rtc_type devtype;
};
-static struct platform_device_id imx_rtc_devtype[] = {
+static const struct platform_device_id imx_rtc_devtype[] = {
{
.name = "imx1-rtc",
.driver_data = IMX1_RTC,
OpenPOWER on IntegriCloud