Message ID | 558AFC0B.1050400@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBC27VH7PV4DBBF7YVOWAKGQEXHVKJEA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8616A21575 for <linaro@patches.linaro.org>; Wed, 24 Jun 2015 18:51:04 +0000 (UTC) Received: by laer2 with SMTP id r2sf13161237lae.3 for <linaro@patches.linaro.org>; Wed, 24 Jun 2015 11:51:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=GyD9IInTQ7/pDnfjDp4B4bgjzweQDJ/8864mOPaAKkc=; b=Cj6XL3Ly2rg+FIwvXu5VGoZGB+LIhyw8xD8AmXCF0eChOCxn7b9GSX4UvkwYm7OFO2 NtBcImRNBET88HfDXSNLHtMtgALdl+57cnSUaFNfnLTDV57PZ/E6TzWOLHNVw0QkUZfc fmjAqw5ZPRxLYpH4x/ezFpoZzXp2QW5u87TXbWqm8pwl39BQT7MeFaPCEAi1Ce13+5DM tmB8yQs6AcEegpe/eTgHT6ZOWhzGOUmT56le16Rt3BypHWKjsW7//TNHYIW4AlluXbNO UCgcDuVqdLvZj9RMIBEwrEGLjBP1WmzH6cdYgtVgo4HhHOquBY2yImSnc0LWGrJO179B WgMA== X-Gm-Message-State: ALoCoQmNX7fBSwbjNKW2/IONgdcL4sy2NocfcuL7IQcT4tAiLAROLoXhmxYd/Uwh9coVm1WGMmQh X-Received: by 10.112.255.66 with SMTP id ao2mr30877094lbd.15.1435171863171; Wed, 24 Jun 2015 11:51:03 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.163 with SMTP id t3ls252227lat.6.gmail; Wed, 24 Jun 2015 11:51:03 -0700 (PDT) X-Received: by 10.152.20.228 with SMTP id q4mr42425029lae.12.1435171863021; Wed, 24 Jun 2015 11:51:03 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id cy4si22693975lac.57.2015.06.24.11.51.02 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jun 2015 11:51:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbpo10 with SMTP id po10so31922367lbb.3 for <patchwork-forward@linaro.org>; Wed, 24 Jun 2015 11:51:02 -0700 (PDT) X-Received: by 10.152.36.161 with SMTP id r1mr41338295laj.88.1435171862425; Wed, 24 Jun 2015 11:51:02 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp96169lbb; Wed, 24 Jun 2015 11:51:01 -0700 (PDT) X-Received: by 10.68.203.231 with SMTP id kt7mr83188163pbc.58.1435171860509; Wed, 24 Jun 2015 11:51:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si41167166pds.160.2015.06.24.11.50.59; Wed, 24 Jun 2015 11:51:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753653AbbFXSu6 (ORCPT <rfc822;vaibhav.hiremath@linaro.org> + 8 others); Wed, 24 Jun 2015 14:50:58 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:34355 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752951AbbFXSu5 (ORCPT <rfc822; devicetree@vger.kernel.org>); Wed, 24 Jun 2015 14:50:57 -0400 Received: by wicnd19 with SMTP id nd19so142973816wic.1 for <devicetree@vger.kernel.org>; Wed, 24 Jun 2015 11:50:55 -0700 (PDT) X-Received: by 10.180.84.170 with SMTP id a10mr7663334wiz.52.1435171855746; Wed, 24 Jun 2015 11:50:55 -0700 (PDT) Received: from [192.168.1.8] (host-78-147-7-145.as13285.net. [78.147.7.145]) by mx.google.com with ESMTPSA id ju2sm3838340wid.12.2015.06.24.11.50.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jun 2015 11:50:54 -0700 (PDT) Message-ID: <558AFC0B.1050400@linaro.org> Date: Wed, 24 Jun 2015 19:50:51 +0100 From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Stefan Wahren <stefan.wahren@i2se.com>, linux-arm-kernel@lists.infradead.org CC: wxt@rock-chips.com, linux-api@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, Kumar Gala <galak@codeaurora.org>, sboyd@codeaurora.org, arnd@arndb.de, s.hauer@pengutronix.de, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, mporter@konsulko.com, Maxime Ripard <maxime.ripard@free-electrons.com>, pantelis.antoniou@konsulko.com, devicetree@vger.kernel.org, Mark Brown <broonie@kernel.org> Subject: Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap. References: <1435014459-26138-1-git-send-email-srinivas.kandagatla@linaro.org> <235181230.251177.1435088854197.JavaMail.open-xchange@oxbsltgw00.schlund.de> <558A7C92.2040102@linaro.org> <558AA2E2.1010606@i2se.com> <558AAA8D.8030209@linaro.org> <1641569650.41238.1435168054323.JavaMail.open-xchange@oxbsltgw35.schlund.de> In-Reply-To: <1641569650.41238.1435168054323.JavaMail.open-xchange@oxbsltgw35.schlund.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/nvmem/qfprom.c b/drivers/nvmem/qfprom.c index 7f7a82f..26ced95 100644 --- a/drivers/nvmem/qfprom.c +++ b/drivers/nvmem/qfprom.c @@ -52,9 +52,9 @@ static int qfprom_probe(struct platform_device *pdev) if (IS_ERR(base)) return PTR_ERR(base); - qfprom_regmap_config.max_register = resource_size(res) - 1; + qfprom_regmap_config.max_register = my_data_size; - regmap = devm_regmap_init_mmio(dev, base, &qfprom_regmap_config); + regmap = devm_regmap_init_mmio(dev, base + data_offset, &qfprom_regmap_config); if (IS_ERR(regmap)) { dev_err(dev, "regmap init failed\n");