From patchwork Thu Jun 2 11:19:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 69152 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp60235qgf; Thu, 2 Jun 2016 04:19:58 -0700 (PDT) X-Received: by 10.66.131.75 with SMTP id ok11mr4684557pab.87.1464866398074; Thu, 02 Jun 2016 04:19:58 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2si72262pfm.61.2016.06.02.04.19.57; Thu, 02 Jun 2016 04:19:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932624AbcFBLTz (ORCPT + 30 others); Thu, 2 Jun 2016 07:19:55 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:36235 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751709AbcFBLTw (ORCPT ); Thu, 2 Jun 2016 07:19:52 -0400 Received: by mail-wm0-f46.google.com with SMTP id n184so74667466wmn.1 for ; Thu, 02 Jun 2016 04:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NsdE7hl4fOdkyPyYsmxAH3rNI6hZFPIPbpqc8CinkPA=; b=CKE27pDwO2ZWkh9RV7bYxuljrldAJtWaqg1xpcEo71/dGq8qvveVeLLHORNiyETbD1 M/wO7jAe7kZhETsEHe5l+zmuR10WjANH3p6yn83QrSI2VcrarX7zAnacQjEx17wSoBEU 7c2geqpUXhrKoMd41stjAH9m6wlYNAneCKhyg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NsdE7hl4fOdkyPyYsmxAH3rNI6hZFPIPbpqc8CinkPA=; b=JgoY88H4fh2uhmBN279sSiiDpSqbiubrChR0fgTsRGq6jJLAIQsMohQVfiAE70YrLA vVIT0RfFS/Q0kUjyrnRq889fryI0UwPToXAiNV4L1pinWMPXgPhrdnSiyzwQE3TZkSQq QCjIVUHEUKSQByq+/klB12mSTOYSvT9lLdbOYhekCj+nxi8hPlDkos1pQD0X+krMWN/k LRQiObClFhStt+XiOmiTb5PTEsPkqVrkEtvoXEdIY7dC53/Jx7yM8A6EChF966qziE6M oiBIZc8gvPQjhUSTz17AUiTZjEBjPbpiM6qTTw8szJ1PGWGyO4iUbClNSmW5k3E+DpCe QSfw== X-Gm-Message-State: ALyK8tLAYxCRdrbnI0Dbx3fNCHv38ktiJtmOnp3Q2aJcc/DzR4eaXMxacjY3pWL0uleMzoLS X-Received: by 10.28.88.208 with SMTP id m199mr25343328wmb.39.1464866391443; Thu, 02 Jun 2016 04:19:51 -0700 (PDT) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id s125sm39909341wms.14.2016.06.02.04.19.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Jun 2016 04:19:50 -0700 (PDT) From: Srinivas Kandagatla To: Greg Kroah-Hartman Cc: Philipp Zabel , Srinivas Kandagatla , Maxime Ripard , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] nvmem: imx-ocotp: Fix assignment warning. Date: Thu, 2 Jun 2016 12:19:44 +0100 Message-Id: <1464866384-4118-2-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1464866384-4118-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1464866384-4118-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes below error if the driver is compiled with 64 bit machine configuration. "drivers/nvmem/imx-ocotp.c:102:14: warning: assignment makes integer from pointer without a cast" Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-ocotp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.8.2 diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index a340390..ac27b9b 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -99,7 +99,7 @@ static int imx_ocotp_probe(struct platform_device *pdev) return PTR_ERR(priv->clk); of_id = of_match_device(imx_ocotp_dt_ids, dev); - priv->nregs = (unsigned int)of_id->data; + priv->nregs = (unsigned long)of_id->data; imx_ocotp_nvmem_config.size = 4 * priv->nregs; imx_ocotp_nvmem_config.dev = dev; imx_ocotp_nvmem_config.priv = priv;