Received: by 10.223.164.202 with SMTP id h10csp4389137wrb; Mon, 20 Nov 2017 14:48:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMZq4CGEs3cS1fXLO61mtGlzHSmSkxrCs9kEzI7bIkwkcS/8ZQvDwVGaMGbthSgT61a6vck1 X-Received: by 10.84.241.5 with SMTP id a5mr2755338pll.128.1511218086270; Mon, 20 Nov 2017 14:48:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511218086; cv=none; d=google.com; s=arc-20160816; b=efP23too28ldVBXpFamuZlHy+azEKNact01wMk6Ruy+xMOGoxUF+1pPzH8jgV3eem0 P1SVK/4qTlWv+DGeUXPfwC5TvyDKuc3Gv2Kc/GH7X2SrEBKpEp5IG5g7QlqZ6urpE9Xs +5IgBzYsfxp3Uz/gLaooDUWIxs2zWpNYgz5fgALqeZefu/bLxnyh6xOUtd8hzgxkSYyE cE6ZUiWf0FmeWTG4Ah8hnctjbhE0QDmuLjuggSGsiB521vAmfLmAKOzbt63S83JmqKIM KwnBnUPf1fda3Ml90LRZnomsalHupA4UxzbIejEz30FN8WJQJUsKsTwPdqXIIR2vjBqG Eg+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=lI6GK6gL+gjIkqkjD4qIQpgU1A2uYq6UKUmu2p1AxYQ=; b=HH0Yc4k3mLAx+EeiIto9IDWHtvFJGRF45eUqSFZQHudPgV2azvTSG/kALE5SUnrUtW WGjlSfDjSBQkGT1/R9DiMI75dqFHvslKLuzE2mUliiHn0qj94UYgIxZwflvZ8qPkGHFh nQwGbDsE72aFaQ+z69osdA2ksL813VI3yjbjJt/nW1E/Xd6WmQYnBMdLpoTHkVoNHXNI vVmomXEooNeMtAZ3gxgD8pH7R43Od0YqAslBIgnottF7TFE6pUoufSuxwA4uA15A/JIa tkSf0kYwmyvdffBAsEBbMdrKkIwvvRYiaDRW5D706HcXl/XGiH5tWvBMAp3urkK9MS9K 3TBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NYelMJsh; 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 sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v69si9171949pgd.742.2017.11.20.14.47.56; Mon, 20 Nov 2017 14:48:06 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=NYelMJsh; 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 sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751526AbdKTWrD (ORCPT + 68 others); Mon, 20 Nov 2017 17:47:03 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:35377 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751158AbdKTWrB (ORCPT ); Mon, 20 Nov 2017 17:47:01 -0500 Received: by mail-lf0-f65.google.com with SMTP id o41so11911295lfi.2; Mon, 20 Nov 2017 14:47:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=lI6GK6gL+gjIkqkjD4qIQpgU1A2uYq6UKUmu2p1AxYQ=; b=NYelMJsh14+uVCPXzJ03CpE+ccixnp/F8Lg4FKJCYJgmgv1HPebWPj9rNfHFqwQbGM FJ68+FMjiivlGihrHIRyEQUBdmp95lyHCZtOhtv/AvmWlgtbysLVbZL1AuWaixhTo3Ul dPCpFOdF4/ZYqoT7N1WL7fVfphmy87HPMWvVtUo4aClIccRAT6gLM7366xiTRd1LR4sh ENVbMZpPNhbGbFmUCeS39d5vs83i7OLws2WKzU71qpMFaurn4OEv0In6o9vZkJWw5/HQ E0eGLlJjg1ixCranSU/vWqOV/6SUN3rRVLFi/VAlPE9a9daT3+HG4pWVNaP2NM56oLb8 f12w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lI6GK6gL+gjIkqkjD4qIQpgU1A2uYq6UKUmu2p1AxYQ=; b=aLii/2ENrtUYzdGUBJjvDOGUx3/aiWl2QpG7610cB+HTitfjCHITeg6sUzsZoY4HAM m0CyiMazco9lWSuJ1EJfG1TZLJdra1b2xkSELaFn3f8rdW4zKSAQpnr9rRwlLOvw1Yad /rrpQvUtEPp/+WvfzQmcG9iWPONgQv8aBStmWQwifPCtIYI2jZZWQMtfGTJoEiolwkZy 9KzyY26bB+NR72T3ixffYRaMzCpR7PWm5mGWORU2qRKyoxFY9gGMAzih1REgh2Bz3oVt Kr4zkWGjVM2H/LVygSnwMlShY4rVy2dNgTEJNTG4MtWN8Ih5R9FgdKg08FsYVPkz7iZN 5UNA== X-Gm-Message-State: AJaThX7J6h+e00hcImzqPuRKN80YsbKxlm2P1/4yVpQknzwltwcVCjGh i0hqUSPCq9WH9ALpxlO44Es= X-Received: by 10.25.209.144 with SMTP id i138mr4698282lfg.260.1511218020149; Mon, 20 Nov 2017 14:47:00 -0800 (PST) Received: from localhost.localdomain ([195.254.138.66]) by smtp.gmail.com with ESMTPSA id t16sm2798718lje.81.2017.11.20.14.46.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Nov 2017 14:46:59 -0800 (PST) From: Vasyl Gomonovych To: patrice.chotard@st.com, mchehab@kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, gomonovych@gmail.com Subject: [PATCH] [media] c8sectpfe: Use resource_size function on memory resource Date: Mon, 20 Nov 2017 23:46:47 +0100 Message-Id: <1511218007-3577-1-git-send-email-gomonovych@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To adapt fei->sram_size calculation via resource_size for memory size calculation before, in fei->sram = devm_ioremap_resource(dev, res). And make memory initialization range in memset_io for fei->sram appropriate Signed-off-by: Vasyl Gomonovych --- drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c index 59280ac31937..283f7289aaa1 100644 --- a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c +++ b/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c @@ -691,7 +691,7 @@ static int c8sectpfe_probe(struct platform_device *pdev) if (IS_ERR(fei->sram)) return PTR_ERR(fei->sram); - fei->sram_size = res->end - res->start; + fei->sram_size = resource_size(res); fei->idle_irq = platform_get_irq_byname(pdev, "c8sectpfe-idle-irq"); if (fei->idle_irq < 0) { -- 1.9.1 From 1584676537411512243@xxx Tue Nov 21 11:55:13 +0000 2017 X-GM-THRID: 1584180220649447358 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread