From patchwork Fri Mar 15 13:08:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10854693 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5E3FF15AC for ; Fri, 15 Mar 2019 13:08:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 483992A9B2 for ; Fri, 15 Mar 2019 13:08:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C7AF2A9B4; Fri, 15 Mar 2019 13:08:51 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B8F7B2A9B6 for ; Fri, 15 Mar 2019 13:08:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B65BD6E409; Fri, 15 Mar 2019 13:08:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id E10016E409 for ; Fri, 15 Mar 2019 13:08:47 +0000 (UTC) Received: by mail-pf1-x444.google.com with SMTP id d25so6315597pfn.8 for ; Fri, 15 Mar 2019 06:08:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iy5X5nQ4JgXGLF8UMM2hZ+8DxyqREPSMFw8EUbSF9/Y=; b=m3nh9zG8adr5EW0r3IXPlHcKGiMPvFXj/wWLae2IKjdfUxHa5Rg1rGc/RtWMGi74Q5 zAhIhArdbpbLWMAtVQ4o5HVtBZTIwEfkBEzy8uxDB4suYfw829ki9jAdzYrLT4wLJfHu nGwjMZWRHUhBfDMubWX+w6k/ytPDwmeLhcuT/wfG3hf77XxJO1OWkUADDBXHVU8gIj7y zNCTP9c6iIyvCZ6tJrqRhOoBh66l81z+yCayKu01NzuHLiDrWd5oK+sCJuXqyAv/R8IZ MqgbYe0X4AWhmRz5/4CVWf5yyqd/nkgItufRdFdL/e+IZZuHrQeVW9kWCiWD7ild1rJS gGkQ== X-Gm-Message-State: APjAAAUDmEMelrmeqhOVnjFOBzvz5696oAJi0VYofOmLTbUfxSz55MAf dCvI7zQ5nT0or53M7jVX2SSQHw== X-Google-Smtp-Source: APXvYqydZg7PQXvS2Bgd7RPRfKpHQih5xMbZt34Kjaiwt0O75Jd/UYNWjPeusZb2G04Eq0ACxQjnWA== X-Received: by 2002:a62:48c1:: with SMTP id q62mr3983492pfi.113.1552655327466; Fri, 15 Mar 2019 06:08:47 -0700 (PDT) Received: from localhost.localdomain ([183.82.230.185]) by smtp.gmail.com with ESMTPSA id e2sm854008pfa.64.2019.03.15.06.08.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Mar 2019 06:08:46 -0700 (PDT) From: Jagan Teki To: Andrzej Hajda , Laurent Pinchart , Chen-Yu Tsai , Maxime Ripard , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland Subject: [PATCH 2/6] drm/exynos: dsi: Use drm_bridge_detach Date: Fri, 15 Mar 2019 18:38:21 +0530 Message-Id: <20190315130825.9005-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190315130825.9005-1-jagan@amarulasolutions.com> References: <20190315130825.9005-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iy5X5nQ4JgXGLF8UMM2hZ+8DxyqREPSMFw8EUbSF9/Y=; b=pO8ssjEaKNDM2gxwo2eZOJi3BFaU6Z7wYIQ4I1OHhb5JrmiQNN0ar47vhmtlIHkIIS RWpk/5+cRl/iPVEgCzavRKeDJR9Reyhu/r0oLuNT3v4gMsylvwqauvz+kHlcHWDVmVAi l7EbSBu8e14tkwTzn5igylZZLTf6sv4LmqOw4= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Seung-Woo Kim , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com, Jagan Teki , Kyungmin Park , Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP drm_bridge_detach now available to use while detaching bridge, use this core wrapper instead of explicitly pointing the bridge funcs. Cc: Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Cc: Kyungmin Park Signed-off-by: Jagan Teki Acked-by: Inki Dae --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index a4253dd55f86..5daf43d02768 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1583,8 +1583,7 @@ static int exynos_dsi_host_detach(struct mipi_dsi_host *host, dsi->connector.status = connector_status_disconnected; mutex_unlock(&drm->mode_config.mutex); } else { - if (dsi->out_bridge->funcs->detach) - dsi->out_bridge->funcs->detach(dsi->out_bridge); + drm_bridge_detach(dsi->out_bridge); dsi->out_bridge = NULL; }