From patchwork Fri May 1 15:46:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6310451 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B5E319F32B for ; Fri, 1 May 2015 15:47:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EDCAA20439 for ; Fri, 1 May 2015 15:47:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F06E020443 for ; Fri, 1 May 2015 15:47:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754151AbbEAPrJ (ORCPT ); Fri, 1 May 2015 11:47:09 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:35910 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754354AbbEAPrH (ORCPT ); Fri, 1 May 2015 11:47:07 -0400 Received: by pabsx10 with SMTP id sx10so93964312pab.3; Fri, 01 May 2015 08:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Vz9F3snG3Bqr/mFUgZUDMO1IJe+Yy7sOhVXqKc3vSaU=; b=xnQmVjqlMfq/59GaTPnnPC3IEumroNEqPXmbPUyg+sRJhgYIYh0r+FAbBEs0mRO0Yo uDg3Ak1pudz1948nMA0T1ICpcrZAwJAQ4Z+Y4A0DO06qlymqJQn0HpcQhYWuydSgfocG zMcA5iWp1I7MVcuKEmHAEhCOVCDmthnD23C9Lk/O2bBai4rgk4hLpiFgfpkTH/L4N5OG Tl6ake1KNrMAQT6w0mSlgTHtxxDjDEGmil+a78cI1TMGEsvXgGTXQZ36aP+J2Y3c54p2 tvSz3KVcxGSuFeBAhX9gqwjQZXsRAYMSGDhW/9+4/jhQAn7VYEWCwuIZSI8YRO+3UJ8c 9Jvg== X-Received: by 10.70.96.162 with SMTP id dt2mr18710901pdb.20.1430495226847; Fri, 01 May 2015 08:47:06 -0700 (PDT) Received: from localhost.localdomain ([125.130.175.98]) by mx.google.com with ESMTPSA id gy1sm5191215pbc.55.2015.05.01.08.47.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 May 2015 08:47:06 -0700 (PDT) From: Krzysztof Kozlowski To: Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , Alexandre Belloni , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] power: at91-reset: Constify platform_device_id Date: Sat, 2 May 2015 00:46:44 +0900 Message-Id: <1430495204-31363-2-git-send-email-k.kozlowski.k@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1430495204-31363-1-git-send-email-k.kozlowski.k@gmail.com> References: <1430495204-31363-1-git-send-email-k.kozlowski.k@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski Acked-by: Alexandre Belloni --- drivers/power/reset/at91-reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/reset/at91-reset.c b/drivers/power/reset/at91-reset.c index 01c7055c4200..4bfd9056eef5 100644 --- a/drivers/power/reset/at91-reset.c +++ b/drivers/power/reset/at91-reset.c @@ -243,7 +243,7 @@ static int at91_reset_probe(struct platform_device *pdev) return 0; } -static struct platform_device_id at91_reset_plat_match[] = { +static const struct platform_device_id at91_reset_plat_match[] = { { "at91-sam9260-reset", (unsigned long)at91sam9260_restart }, { "at91-sam9g45-reset", (unsigned long)at91sam9g45_restart }, { /* sentinel */ }