From patchwork Wed Nov 17 06:44:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 331101 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 oAH6ff0d020179 for ; Wed, 17 Nov 2010 06:41:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934487Ab0KQGlX (ORCPT ); Wed, 17 Nov 2010 01:41:23 -0500 Received: from mail-gx0-f174.google.com ([209.85.161.174]:57973 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934439Ab0KQGlX (ORCPT ); Wed, 17 Nov 2010 01:41:23 -0500 Received: by mail-gx0-f174.google.com with SMTP id 23so927803gxk.19 for ; Tue, 16 Nov 2010 22:41:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=NIXzanRUJyUMFOe1lor3tr/HTJl89i8girpFLLnF8Oc=; b=g26KrL5J57Z5gZe4goJEjV1YF/i8CXQV+O5p+zo0vMhLr8WIBtoHSrie1xhaJ34zvC GBTRvRvjcSzGwqatkmD+8BRekqHe2maXdJ9iuoPb9tZoIChkXLKz47y5cCOeS8EGOiQA faCumml1sSFn75tBzbmlI5MFtUMEhqPLa4re0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=GPXDNVmm8x3Zw6hZMthnJN3bKKiu0Ho0wL1rODMJsDrnCAT1KYA8PgRsS/MdRYEdNx DefgnMCJFsDQuBaN64y8kxdGv1Asn98KkyKsL1waQT6/HdkomxiySzsCntFWBgqdF6A9 QEr1dXM6sqTXwL6Uy6jxMuACh8Od07Gw5tqrc= Received: by 10.100.140.1 with SMTP id n1mr5925861and.4.1289976082618; Tue, 16 Nov 2010 22:41:22 -0800 (PST) Received: from [127.0.0.1] (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id b28sm5110675ana.8.2010.11.16.22.41.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 16 Nov 2010 22:41:21 -0800 (PST) From: Magnus Damm To: linux-kernel@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org, g.liakhovetski@gmx.de, linux-sh@vger.kernel.org Date: Wed, 17 Nov 2010 15:44:15 +0900 Message-Id: <20101117064415.18139.28996.sendpatchset@t400s> In-Reply-To: <20101117064405.18139.57035.sendpatchset@t400s> References: <20101117064405.18139.57035.sendpatchset@t400s> Subject: [PATCH 01/05] fbdev: sh_mipi_dsi: Remove request/release mem region Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 17 Nov 2010 06:41:42 +0000 (UTC) --- 0001/drivers/video/sh_mipi_dsi.c +++ work/drivers/video/sh_mipi_dsi.c 2010-11-16 17:34:08.000000000 +0900 @@ -344,12 +344,6 @@ static int __init sh_mipi_probe(struct p goto ealloc; } - if (!request_mem_region(res->start, resource_size(res), pdev->name)) { - dev_err(&pdev->dev, "MIPI register region already claimed\n"); - ret = -EBUSY; - goto ereqreg; - } - mipi->base = ioremap(res->start, resource_size(res)); if (!mipi->base) { ret = -ENOMEM; @@ -433,8 +427,6 @@ esettrate: eclktget: iounmap(mipi->base); emap: - release_mem_region(res->start, resource_size(res)); -ereqreg: kfree(mipi); ealloc: efindslot: @@ -446,7 +438,6 @@ efindslot: static int __exit sh_mipi_remove(struct platform_device *pdev) { struct sh_mipi_dsi_info *pdata = pdev->dev.platform_data; - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); struct sh_mipi *mipi = platform_get_drvdata(pdev); int i, ret; @@ -476,8 +467,6 @@ static int __exit sh_mipi_remove(struct clk_put(mipi->dsit_clk); clk_put(mipi->dsip_clk); iounmap(mipi->base); - if (res) - release_mem_region(res->start, resource_size(res)); platform_set_drvdata(pdev, NULL); kfree(mipi);