Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932938AbZLNXPl (ORCPT ); Mon, 14 Dec 2009 18:15:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932925AbZLNXPi (ORCPT ); Mon, 14 Dec 2009 18:15:38 -0500 Received: from exprod6og116.obsmtp.com ([64.18.1.37]:59412 "EHLO exprod6og116.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932921AbZLNXPf convert rfc822-to-8bit (ORCPT ); Mon, 14 Dec 2009 18:15:35 -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] ehci-atmel.c: use resource_size() Date: Mon, 14 Dec 2009 18:15:35 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] ehci-atmel.c: use resource_size() Thread-Index: Acp9E1cuOxGxMUp/QhCOq/Cll5z3Dw== From: "H Hartley Sweeten" To: "kernel list" , Cc: "David Brownell" X-OriginalArrivalTime: 14 Dec 2009 23:15:33.0138 (UTC) FILETIME=[55D56720:01CA7D13] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 896 Lines: 25 Use resource_size(). Signed-off-by: H Hartley Sweeten Cc: David Brownell --- diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index 87c1b7c..51bd0ed 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c @@ -149,7 +149,7 @@ static int __init ehci_atmel_drv_probe(struct platform_device *pdev) goto fail_request_resource; } hcd->rsrc_start = res->start; - hcd->rsrc_len = res->end - res->start + 1; + hcd->rsrc_len = resource_size(res); if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, driver->description)) { -- 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/