From patchwork Sat Jul 28 09:05:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Behme X-Patchwork-Id: 1251431 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 0317AE006E for ; Sat, 28 Jul 2012 09:10:58 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sv2ya-0005MZ-7i; Sat, 28 Jul 2012 09:06:20 +0000 Received: from mail-bk0-f49.google.com ([209.85.214.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Sv2yD-0005Lm-PK; Sat, 28 Jul 2012 09:05:58 +0000 Received: by bkcji2 with SMTP id ji2so2257005bkc.36 for ; Sat, 28 Jul 2012 02:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=nV/WrQDLNcV61ww1sZAGqlD1wKHDMN/m7k68ZO3mV7s=; b=ncQdXjYBNfw+tWPJSL427SR7dyaOY9S0F0IrZsGdgoWbHhTK9IEAG+HT6AF+Pwz221 7X1HeIzrKRrna4/h7T/jPkJQtcx0GtD4ZBuEcPattdfvWv8dl67bMjOXMML4r3+gMole 40gg5WyNiWeMHSpWxRyrcLGMi7dnMpTTO72+CyA+4OGnld78sURTFbxb59n/YN/cMtVM SwH7ywr4P9KtCp+z2PZ+tvwBvWswY8gWN6whK1TiWFyke1ToZwuKdyMUxfCO9XPHg/PE lBfYty9XxQWimHrrdvSdYbiMoR/zU4rGchbSYJSTa8BtM7kzl/RPUsHqEZb+TOmxIOwE AmBw== Received: by 10.204.157.144 with SMTP id b16mr1921795bkx.122.1343466332430; Sat, 28 Jul 2012 02:05:32 -0700 (PDT) Received: from asterix.localdomain (p4FEE32EB.dip.t-dialin.net. [79.238.50.235]) by mx.google.com with ESMTPS id y20sm1680202bkv.11.2012.07.28.02.05.30 (version=SSLv3 cipher=OTHER); Sat, 28 Jul 2012 02:05:31 -0700 (PDT) From: Dirk Behme To: shijie8@gmail.com, linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, shawn.guo@linaro.org Subject: [PATCH] mtd: mxc_nand: Fix compiler warnings Date: Sat, 28 Jul 2012 11:05:10 +0200 Message-Id: <1343466310-14584-1-git-send-email-dirk.behme@gmail.com> X-Mailer: git-send-email 1.7.7.4 X-Spam-Note: CRM114 invocation failed X-Spam-Note: SpamAssassin invocation failed Cc: Dirk Behme X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Dirk Behme Fix the compiler warnings drivers/mtd/nand/mxc_nand.c:1267: warning: initialization discards qualifiers from pointer target type drivers/mtd/nand/mxc_nand.c:1270: warning: initialization discards qualifiers from pointer target type drivers/mtd/nand/mxc_nand.c:1273: warning: initialization discards qualifiers from pointer target type drivers/mtd/nand/mxc_nand.c:1276: warning: initialization discards qualifiers from pointer target type Signed-off-by: Dirk Behme --- drivers/mtd/nand/mxc_nand.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 6acc790..31b125a 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c @@ -1264,16 +1264,16 @@ static const struct mxc_nand_devtype_data imx51_nand_devtype_data = { static const struct of_device_id mxcnd_dt_ids[] = { { .compatible = "fsl,imx21-nand", - .data = &imx21_nand_devtype_data, + .data = (void *)&imx21_nand_devtype_data, }, { .compatible = "fsl,imx27-nand", - .data = &imx27_nand_devtype_data, + .data = (void *)&imx27_nand_devtype_data, }, { .compatible = "fsl,imx25-nand", - .data = &imx25_nand_devtype_data, + .data = (void *)&imx25_nand_devtype_data, }, { .compatible = "fsl,imx51-nand", - .data = &imx51_nand_devtype_data, + .data = (void *)&imx51_nand_devtype_data, }, { /* sentinel */ } };