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: 9384767 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 E9F64607D0 for ; Wed, 19 Oct 2016 16:17:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCF0029903 for ; Wed, 19 Oct 2016 16:17:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D015829954; Wed, 19 Oct 2016 16:17: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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 762CB2990C for ; Wed, 19 Oct 2016 16:17:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941492AbcJSQRm (ORCPT ); Wed, 19 Oct 2016 12:17:42 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34194 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938936AbcJSQRj (ORCPT ); Wed, 19 Oct 2016 12:17:39 -0400 Received: by mail-pf0-f196.google.com with SMTP id 128so2874204pfz.1; Wed, 19 Oct 2016 09:17: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=WO7+HfselSPPcWcI4ZsniqWC8HAF7w71JVxSM3nAa8TXEjdBWwS566WgSpizD3z7Q3 NBNMYNRb7RPj9ypHZhTLZ4paDjyZ1E9LWB3sU+z43hFiN5y0tjHXsPRpSGu6jGG9Wx0i zQ15hGEKraccPOPkmuyMDk61XBfuewoeWrzv9wGHkRdBjuIb5lg0UVgdZlO6Z3+DpOFR SS+sQgt7h+2ERRF1/h5V479WDiDvwbo35NbkKb56Rmyk6jQKLt5Lp8zr80/PV2b3mGQi /tS1PaueWKz1PEaXDVNq3hNfrogSmDtywaKRx2OZJ+gG4DxV7TsQV7Xpl39odP6b9fcC fOoA== X-Gm-Message-State: AA6/9RlHw9JQs2afFH5Je2P9B8iiAB44/TEn7Iz/QsgCT0ZYKlpoh5yk5cIM/tUWfXIDNQ== 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 Cc: inki.dae@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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;