From patchwork Mon Oct 17 11:09:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9378975 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 982EE607D4 for ; Mon, 17 Oct 2016 11:12:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A93E29099 for ; Mon, 17 Oct 2016 11:12:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7EB6C29108; Mon, 17 Oct 2016 11:12:50 +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=-3.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM, 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 10DB729099 for ; Mon, 17 Oct 2016 11:12:50 +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 1bw5p3-0007m8-P9; Mon, 17 Oct 2016 11:11:13 +0000 Received: from mail-qt0-f195.google.com ([209.85.216.195]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bw5ox-0007e7-UY for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2016 11:11:08 +0000 Received: by mail-qt0-f195.google.com with SMTP id g49so6099759qtc.2 for ; Mon, 17 Oct 2016 04:10:47 -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=f9bNmqR5by/lXUgDKBqUw1nImUQeq0CZA4V7sHUVbHU=; b=JkYLP8tJl0WSkKqyuRN9j7S1XdWksIy147gMxpdViI+thYgVbpXxgpAfB33dzkR9CE W6r17CoykG/qI9RmpyvcLArHkp2dWRQ11Ptzmp8JQYiK2VJU2V3PckbtAvYpDmBIjOKm FsQ2SeV5luNMN9xmHkm6nmBzruO9MXLCJuKlYYP5T0wCgX2p26jKaZHydpStBQPIXtCr NOQtrpTaYUaspaHSB3OXgF08KQLnl2WSEPvy+Qh7zKQTdpFtlOFquK/bYGGIsrKn7sTx KCpxCB4QPCIVWyDmcQ7z6u5XVkdfVDpmRP83Vw3Ohp5GE4IDs/a4bCw7jQm44WGynoLx 4eMA== 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=f9bNmqR5by/lXUgDKBqUw1nImUQeq0CZA4V7sHUVbHU=; b=GM9ePIr2X8PzmWbJMXD/+0WxQdmhE/fKYMrergMYhFWoOm7lKDGHTRGZvfz0M+Qzyb 9ezjALL22Y6QbNtJ3puwitOlKoVYGpPFqshtqELFeymdE7n7hUtI7y/2ZEKxF2eYxhSe a4RwfOCFCtkaW2kkurc9kSDPnjQWdOH6gIwM5bWUxgzk9JCrASx1ZPUdJksSiUoq/sDe LOQ3Ys6nkyE7dEx8SZRMdu0JuY7x6Q6FSLn6zTTZqkMnXQ6PDxkkWa1a79e0W4R05q6I rHwmJmR8iuTSW5OXpAGk3SUGf0p1ftRoI84k/8/ovnLy7layEP5bnf+17dsWvvSmZSfE ojXw== X-Gm-Message-State: AA6/9Rmur3rtQfetvaqjagiOezf8JJLEz/ZTEsqJq+cHE08ldbRYg1Qx+DLihl2QOuiUhQ== X-Received: by 10.200.55.184 with SMTP id d53mr25035157qtc.54.1476702586421; Mon, 17 Oct 2016 04:09:46 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.symbol.com ([140.101.159.249]) by smtp.googlemail.com with ESMTPSA id l8sm14719812qtl.18.2016.10.17.04.09.41 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Oct 2016 04:09:45 -0700 (PDT) From: Arvind Yadav To: airlied@linux.ie, krzk@kernel.org, kgene@kernel.org Subject: [PATCH] crygpu/drm/exynos/exynos_hdmi - Unmap region obtained by of_iomap Date: Mon, 17 Oct 2016 16:39:22 +0530 Message-Id: <1476702562-24422-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-20161017_041108_118107_483A3C3E X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 2275efe..9b7857b 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);