Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755345Ab0AETBw (ORCPT ); Tue, 5 Jan 2010 14:01:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751872Ab0AETBt (ORCPT ); Tue, 5 Jan 2010 14:01:49 -0500 Received: from mga07.intel.com ([143.182.124.22]:61488 "EHLO azsmga101.ch.intel.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755165Ab0AETBq (ORCPT ); Tue, 5 Jan 2010 14:01:46 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.47,316,1257148800"; d="scan'208";a="229487904" Date: Tue, 5 Jan 2010 20:03:25 +0100 From: Samuel Ortiz To: H Hartley Sweeten Cc: kernel list , ian@mnementh.co.uk Subject: Re: [PATCH] tc6393xb.c: use resource_size() Message-ID: <20100105190325.GI4274@sortiz.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1108 Lines: 35 Hi Hartley, On Fri, Dec 11, 2009 at 07:11:13PM -0500, H Hartley Sweeten wrote: > Use resource_size() for ioremap. Patch applied too, many thanks. > Signed-off-by: H Hartley Sweeten > Cc: Ian Molton > Cc: Samuel Ortiz > > --- > > diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c > index 1429a73..50b1610 100644 > --- a/drivers/mfd/tc6393xb.c > +++ b/drivers/mfd/tc6393xb.c > @@ -610,7 +610,7 @@ static int __devinit tc6393xb_probe(struct platform_device *dev) > if (ret) > goto err_request_scr; > > - tc6393xb->scr = ioremap(rscr->start, rscr->end - rscr->start + 1); > + tc6393xb->scr = ioremap(rscr->start, resource_size(rscr)); > if (!tc6393xb->scr) { > ret = -ENOMEM; > goto err_ioremap; -- Intel Open Source Technology Centre http://oss.intel.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/