From patchwork Sat Jan 29 09:35:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 516401 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0T9ZoXK002185 for ; Sat, 29 Jan 2011 09:35:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752001Ab1A2Jft (ORCPT ); Sat, 29 Jan 2011 04:35:49 -0500 Received: from mail-pv0-f174.google.com ([74.125.83.174]:56716 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751908Ab1A2Jfs (ORCPT ); Sat, 29 Jan 2011 04:35:48 -0500 Received: by pva4 with SMTP id 4so571906pva.19 for ; Sat, 29 Jan 2011 01:35:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:in-reply-to:references :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=8LBXE8oY11dxZWguU+C5EVzXBy3rU/4USPAbhnS1gKk=; b=DPgDRW6oWcRwHVVT/UUt7b7DDy46RU4firCmjZUP/hNo7wC9UX/+LiJpgqoIjjzs4F /rdCB7hEPr5o8vnWO9UCErPrJxZ3TM7LaM3sudlGFDNBGXJ6CjlfatPI6e5O8zHhNFwq fwBF9lf3TtNpG6DIe3HB1dwU16arm3HYXi1/M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=jlgfVcl7wXQxlujHsPQbLOBvprw3E7rWF8W+5AszlktcB/LTF6yTpO9GZfoC4kOpy0 qBFf+9uDpEG10LNMS3f05HXP8W/UhH7x12eHUpyauuY083NRsrdEGv8DaCjKnLON51Tq efNHCktIQwzhOrs2h2onAfXqDJjgJRjHE0R9U= Received: by 10.142.172.3 with SMTP id u3mr3964836wfe.415.1296293748363; Sat, 29 Jan 2011 01:35:48 -0800 (PST) Received: from [218.167.73.81] (218-167-73-81.dynamic.hinet.net [218.167.73.81]) by mx.google.com with ESMTPS id w14sm24643616wfd.6.2011.01.29.01.35.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 29 Jan 2011 01:35:47 -0800 (PST) Subject: [PATCH 2/2] video: sh7760fb: use resource_size() From: Axel Lin To: linux-kernel@vger.kernel.org Cc: Manuel Lauss , Nobuhiro Iwamatsu , Paul Mundt , linux-fbdev@vger.kernel.org In-Reply-To: <1296293628.13797.2.camel@phoenix> References: <1296293628.13797.2.camel@phoenix> Date: Sat, 29 Jan 2011 17:35:45 +0800 Message-ID: <1296293745.13797.4.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 29 Jan 2011 09:35:51 +0000 (UTC) diff --git a/drivers/video/sh7760fb.c b/drivers/video/sh7760fb.c index bea38fc..8fe1958 100644 --- a/drivers/video/sh7760fb.c +++ b/drivers/video/sh7760fb.c @@ -459,14 +459,14 @@ static int __devinit sh7760fb_probe(struct platform_device *pdev) } par->ioarea = request_mem_region(res->start, - (res->end - res->start), pdev->name); + resource_size(res), pdev->name); if (!par->ioarea) { dev_err(&pdev->dev, "mmio area busy\n"); ret = -EBUSY; goto out_fb; } - par->base = ioremap_nocache(res->start, res->end - res->start + 1); + par->base = ioremap_nocache(res->start, resource_size(res)); if (!par->base) { dev_err(&pdev->dev, "cannot remap\n"); ret = -ENODEV;