Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752864AbaFFHdA (ORCPT ); Fri, 6 Jun 2014 03:33:00 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:42410 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752842AbaFFHc6 (ORCPT ); Fri, 6 Jun 2014 03:32:58 -0400 MIME-Version: 1.0 In-Reply-To: <002101cf7f24$40f3e670$c2dbb350$%han@samsung.com> References: <002101cf7f24$40f3e670$c2dbb350$%han@samsung.com> Date: Fri, 6 Jun 2014 15:32:56 +0800 Message-ID: Subject: Re: [PATCH 1/2] rtc: rtc-sa1100: Make of_device_id array const From: Haojian Zhuang To: Jingoo Han Cc: Andrew Morton , "linux-kernel@vger.kernel.org" , Alessandro Zummo , rtc-linux@googlegroups.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3 June 2014 20:06, Jingoo Han wrote: > Make of_device_id array const, because all OF functions handle > it as const. > > Signed-off-by: Jingoo Han > --- > drivers/rtc/rtc-sa1100.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/rtc/rtc-sa1100.c b/drivers/rtc/rtc-sa1100.c > index 0f7adeb..b6e1ca0 100644 > --- a/drivers/rtc/rtc-sa1100.c > +++ b/drivers/rtc/rtc-sa1100.c > @@ -338,7 +338,7 @@ static SIMPLE_DEV_PM_OPS(sa1100_rtc_pm_ops, sa1100_rtc_suspend, > sa1100_rtc_resume); > > #ifdef CONFIG_OF > -static struct of_device_id sa1100_rtc_dt_ids[] = { > +static const struct of_device_id sa1100_rtc_dt_ids[] = { > { .compatible = "mrvl,sa1100-rtc", }, > { .compatible = "mrvl,mmp-rtc", }, > {} > -- > 1.7.10.4 > > Acked-by: Haojian Zhuang Regards Haojian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/