From patchwork Wed Oct 19 10:04:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9383819 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7331E60487 for ; Wed, 19 Oct 2016 10:16:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64FF92996C for ; Wed, 19 Oct 2016 10:16:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5791229956; Wed, 19 Oct 2016 10:16:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 10FA729956 for ; Wed, 19 Oct 2016 10:16:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwnut-0004D8-3B; Wed, 19 Oct 2016 10:16:11 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwnk4-0003CW-Pa for linux-arm-kernel@lists.infradead.org; Wed, 19 Oct 2016 10:05:02 +0000 Received: by mail-pf0-x243.google.com with SMTP id s8so2066180pfj.2 for ; Wed, 19 Oct 2016 03:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=iRU6cQHuMadepZq7SlO+7GX136DsDXyd5Z/1E2XnriM=; b=ZNeElXTygKcslV+5KFMkMJL+eqsYXW0sv5qGccyFARPFJ5xFaSAL9XMrRKLSmb3vmw 4o2NSH2X/ZwOH6psUDb91ghIo+lTZn0F5vSl3wAXO7qFltansb89HobZJrLRue2SlabL JZLlfRg2j0cWfm/b3NyzBA3lYr1nnOMrNOohIT/gpHeXLif/IAEomh1ziTyaBeVIvQt0 MTiO3tHu91rinWsu8B7E9HXTHTBk+eK/eqsl6yo7/5db3pBFd6rzuSoLZkQra6w5WY2W e2GX4JwgQ4udRkfP+YFW7SoS+FYpdn5GPEG7n0OF7zYACis1R0w35/eKD+KdJ4yL6io8 a2Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=iRU6cQHuMadepZq7SlO+7GX136DsDXyd5Z/1E2XnriM=; b=AyLowPtFtlI5itjFnfFPgN4lcKvIYmj7xKuIk9HwaqW9NSGnBxB1clfWYc9ruer8df j/72cXvCsPER2nFsQokO9/isb3cn/gV6Ssv+vk1ShOviwTEhkAmYnQFY8TGdXROTn7co b7Ga5/uVn4nGKbWoahLfuQwI4Ixn2sNrGrQoWur2WxtNzCyFbpKZPaHbO22z9muLS5Ya V1T1PNiNDeSyJVZzlqp+eHskvMPFQhu3JSQP5NMsUdmaRNlC51SzBG+iKI3UAT3ZZUeb x7OtbS/qI1ak3ifBSqkMRr+i20Sr6V6Hl82foyDdA/lUNWbIOGljihFsAwceabuKtPon XH2A== X-Gm-Message-State: AA6/9RlA3NRgvrR8ZhwKDghiP5si1Md87xK58nmZNXdVW8CpSt7y3gdNtbZ+dJoGXzmPzg== X-Received: by 10.98.99.2 with SMTP id x2mr9725316pfb.136.1476871479236; Wed, 19 Oct 2016 03:04:39 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.symbol.com ([140.101.159.249]) by smtp.googlemail.com with ESMTPSA id b21sm62371649pfj.90.2016.10.19.03.04.35 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Oct 2016 03:04:38 -0700 (PDT) From: Arvind Yadav To: airlied@linux.ie, krzk@kernel.org, kgene@kernel.org Subject: [PATCH V2] gpu/drm/exynos/exynos_hdmi - Unmap region obtained by of_iomap Date: Wed, 19 Oct 2016 15:34:16 +0530 Message-Id: <1476871456-1098-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161019_030501_100251_2F724F52 X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, jy0922.shim@samsung.com, sw0312.kim@samsung.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, inki.dae@samsung.com, kyungmin.park@samsung.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Free memory mapping, if hdmi_probe is not successful. Signed-off-by: Arvind Yadav --- drivers/gpu/drm/exynos/exynos_hdmi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 2275efe..ba28dec 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1901,6 +1901,8 @@ err_disable_pm_runtime: err_hdmiphy: if (hdata->hdmiphy_port) put_device(&hdata->hdmiphy_port->dev); + if (hdata->regs_hdmiphy) + iounmap(hdata->regs_hdmiphy); err_ddc: put_device(&hdata->ddc_adpt->dev); @@ -1923,6 +1925,9 @@ static int hdmi_remove(struct platform_device *pdev) if (hdata->hdmiphy_port) put_device(&hdata->hdmiphy_port->dev); + if (hdata->regs_hdmiphy) + iounmap(hdata->regs_hdmiphy); + put_device(&hdata->ddc_adpt->dev); return 0;