From patchwork Thu Mar 14 16:40:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatolij Gustschin X-Patchwork-Id: 2272361 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 51EC1DFB79 for ; Thu, 14 Mar 2013 16:41:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933806Ab3CNQlF (ORCPT ); Thu, 14 Mar 2013 12:41:05 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:55028 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933724Ab3CNQlF (ORCPT ); Thu, 14 Mar 2013 12:41:05 -0400 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3ZRbJw1d00z3hj5G; Thu, 14 Mar 2013 17:41:04 +0100 (CET) X-Auth-Info: /BRzYvMatt6aNCVneEjcyZ3SASqyaF8tBT/SoEw4q0s= Received: from localhost (p4FC46EC8.dip.t-dialin.net [79.196.110.200]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA id 3ZRbJw0LfSzbcCm; Thu, 14 Mar 2013 17:41:04 +0100 (CET) From: Anatolij Gustschin To: linux-mmc@vger.kernel.org Cc: Chris Ball , Sascha Hauer , Markus Pargmann , devicetree-discuss@lists.ozlabs.org, Anatolij Gustschin Subject: [PATCH 3/5] mmc: mxcmmc: constify mxcmci_devtype and fix build warning Date: Thu, 14 Mar 2013 17:40:51 +0100 Message-Id: <1363279254-22351-4-git-send-email-agust@denx.de> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1363279254-22351-1-git-send-email-agust@denx.de> References: <1363279254-22351-1-git-send-email-agust@denx.de> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Fix: drivers/mmc/host/mxcmmc.c: In function 'mxcmci_probe': drivers/mmc/host/mxcmmc.c:1137:41: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] Signed-off-by: Anatolij Gustschin --- drivers/mmc/host/mxcmmc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index dc25802..c0115e9 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c @@ -169,7 +169,7 @@ struct mxcmci_host { struct mxcmci_reg_ops *reg_ops; }; -static struct platform_device_id mxcmci_devtype[] = { +static const struct platform_device_id mxcmci_devtype[] = { { .name = "imx21-mmc", .driver_data = IMX21_MMC, @@ -1091,7 +1091,7 @@ static int mxcmci_probe(struct platform_device *pdev) host->reg_ops = &mxcmci_reg_ops; if (of_id) { - struct platform_device_id *id_entry = of_id->data; + const struct platform_device_id *id_entry = of_id->data; host->devtype = id_entry->driver_data; } else { host->devtype = pdev->id_entry->driver_data;