Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762281AbZLLAHa (ORCPT ); Fri, 11 Dec 2009 19:07:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758394AbZLLAH0 (ORCPT ); Fri, 11 Dec 2009 19:07:26 -0500 Received: from exprod6og105.obsmtp.com ([64.18.1.189]:59620 "EHLO exprod6og105.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761538AbZLLAHZ convert rfc822-to-8bit (ORCPT ); Fri, 11 Dec 2009 19:07:25 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Subject: [PATCH] t7l66xb.c: use resource_size() Date: Fri, 11 Dec 2009 19:07:32 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] t7l66xb.c: use resource_size() Thread-Index: Acp6vxnGPYwzqUNxTkuln5AnY95uDA== From: "H Hartley Sweeten" To: "kernel list" Cc: , X-OriginalArrivalTime: 12 Dec 2009 00:07:30.0742 (UTC) FILETIME=[18D4C560:01CA7ABF] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 874 Lines: 26 Use resource_size() for ioremap. Signed-off-by: H Hartley Sweeten Cc: Ian Molton Cc: Samuel Ortiz --- diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index 0a255c1..20bbd1d 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c @@ -341,7 +341,7 @@ static int t7l66xb_probe(struct platform_device *dev) if (ret) goto err_request_scr; - t7l66xb->scr = ioremap(rscr->start, rscr->end - rscr->start + 1); + t7l66xb->scr = ioremap(rscr->start, resource_size(rscr)); if (!t7l66xb->scr) { ret = -ENOMEM; goto err_ioremap; -- 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/