From patchwork Mon Mar 11 11:20:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13588656 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F32D0C54E60 for ; Mon, 11 Mar 2024 11:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=C1wezCBGoPCQ8o0nGatEok5576PWSh2MN4BA9ZJ+o7E=; b=AT0obBPKTmvmcx 79jZemfdC/zHjmi6D5Xry/tV1AGRdhwCgmTwAojreefBxHDd775rmb/7JDLGBOv9k88DARHLq1YWa S4RyL4skx5uUFmLjHA8a0pG4yGyUiSo6+8zcCIUUsitCEiMrqHI2lFLScd8E4i71dpBKOItWhd1sZ zlu+sLZQqQDV2T5D/MdPCzO87LOsFcxKQE8DxCX7FuNYa5xnx6PcGiRqJ8ap0j2UIwTPYszot3QjN Gf0FfLVAg1GjFe1bzcHdzjhKRPnxmWwhmtrzzr/qGdF7r4cuWDWh95RsB6y/PAXAGeTdz2jpeZkk2 psV4fPHlSiQLf1QxUO1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjdjd-00000001Ggf-2FfW; Mon, 11 Mar 2024 11:22:25 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjdi7-00000001Fj6-1rXt for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2024 11:20:54 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2d309a23d76so45161511fa.1 for ; Mon, 11 Mar 2024 04:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710156049; x=1710760849; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gCXm2DvB3Yj7Xx92C5Kj2hDALuD84y0JzdGeVmZf4dE=; b=hTQQ/JSdpYqy/UeBHhdFUeu93Ajj4FKkSKAgPPHUNyJ+OjjfliaXsF9LL5N5Qcjjsd XeY4P4wTEOsIHY+uyOqYSF+g3Gs4C/wnjG8Lznz1gjdkyglXLwNDqo1pBq4Hv1ZwdvAK wUXqc4ACPSdDYQGXb15iPai6+q3XYa366h5ka0gR4hiy5ApAu1ZeaqFCVdj1pNGsPHwW 0prnq+qNZmEnwBH8GjTPYIFTpQ33/4baW+Nx717JtkWeDP9iXSRDteD3rybIKpewV93J 68Cn0AnAeLfiRQyySqTs9ez7kAtKpXspzA1IlNuLSa8j3uGb2a2qDW1VxQWxO+osPawP bU9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710156049; x=1710760849; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gCXm2DvB3Yj7Xx92C5Kj2hDALuD84y0JzdGeVmZf4dE=; b=QYrLSyTfeOjMKo6nhx7uS3555wTVvRaT/cLrcNNa+vhkCeC9Ht7ZGl8hisXUmovyCY ynPlV2bOJW4+DD+Eu0Dj46U1TUlrZEbaMExU0KHxR37fK0YGoXCnRyoN0HEdFIte+726 aKBB/yYfWgSU8I5ph3EwBFlJUx7ljVXkdXXBrQsiA3Z1EUC6CXfADazyzYckpw3zTUpm 2aybg337ZUhXoNPIvXj3KbNtuJujD8MywcHTM/owXnfmw9XJQEczUNkaAsjojL4oJTzD CVTs+6Mjgymq9C7ldeQ5L2MDsnykNAxtPHIji/L8UcgNwa9lN6feSbD4f55r+6JesFPB HC/A== X-Forwarded-Encrypted: i=1; AJvYcCXjUg+dZJRefagd6BIpt6rgmt4LR7l9qnSMRDpfhD77DMe1JEQeWxhV5Z0ENciISWrl0dZOCq6jJIBuHb4VNRH52PPR3EVX7f2KOvmY6mAqvLlqFRQ= X-Gm-Message-State: AOJu0Yw1Ln+NLwO7PFBBIQkod3qFsS460TfKdwajCW4g/b7gwYeNWTpl MSZx2M8TK/bKhXi3pEpb+KBmaV8+el9WHXTU4PWyeWh4NzDWCjjJJILcgUrQ1QA= X-Google-Smtp-Source: AGHT+IHbf4XJ+DXoOulFtxU1Jg17WWBA5XWZO9E7K6YLNf9lvm+H8AQQETB3XuYvtUXahbYyBkzbxA== X-Received: by 2002:a2e:9f4b:0:b0:2d3:17e6:3b4a with SMTP id v11-20020a2e9f4b000000b002d317e63b4amr2197192ljk.23.1710156048922; Mon, 11 Mar 2024 04:20:48 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id by10-20020a05651c1a0a00b002d2aa0b0d01sm1075200ljb.82.2024.03.11.04.20.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 04:20:48 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 11 Mar 2024 13:20:20 +0200 Subject: [PATCH 12/12] drm/imx: move imx_drm_connector_destroy to imx-tve MIME-Version: 1.0 Message-Id: <20240311-drm-imx-cleanup-v1-12-e104f05caa51@linaro.org> References: <20240311-drm-imx-cleanup-v1-0-e104f05caa51@linaro.org> In-Reply-To: <20240311-drm-imx-cleanup-v1-0-e104f05caa51@linaro.org> To: Philipp Zabel , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Chris Healy , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2503; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=c/syM85k3g67errNBDbi0QpULM/5w93/bHQAwxlatC0=; b=owGbwMvMwMXYbdNlx6SpcZXxtFoSQ+q7l6xarfPEZ82sD+9dILip7r2zS68yM5uenhHLU0vD3 Y++6e/rZDRmYWDkYpAVU2TxKWiZGrMpOezDjqn1MINYmUCmMHBxCsBEVuWy/1PSWLs97f7Ku+29 nRGcwvmVcTnhe/8prGHJNv5QbWG3a63a5YoyB6aTqcwGJ9omF7EKP/3xzPnxlPMxwpzqxzzWLvu xsTNaa9MdDfcZJ3cdE8kJf6QSUbHOaj1zU53gGeEzhb5OB5e5SpcwdS+zfq7VN9X7XvDM4itHfq U4RK+2Z9nKZSuyu054SX9XUFvr48AEEcbt+5f3X+M2DGRcfqRs8rYtfSFfiipat0a9Wxaf9nuP9 9GZXKfUPsex8KYxPeUrXp9z/cNWVdEVMlHZGcZOjRea7oTMWTU1f4ZOSZfc+esG1/I/bOfr+hn8 U1lVe6dH9ITMqoQ5TTxtj3lFp14sOjahWDJIadmVnpcpAA== X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240311_042051_640972_2A6785B4 X-CRM114-Status: GOOD ( 12.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The imx-tve driver is the only remaining user of imx_drm_connector_destroy(). Move the function to imx-tve.c Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/imx/ipuv3/imx-drm-core.c | 7 ------- drivers/gpu/drm/imx/ipuv3/imx-drm.h | 2 -- drivers/gpu/drm/imx/ipuv3/imx-tve.c | 8 +++++++- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/imx/ipuv3/imx-drm-core.c b/drivers/gpu/drm/imx/ipuv3/imx-drm-core.c index 4cfabcf7375a..189d395349b8 100644 --- a/drivers/gpu/drm/imx/ipuv3/imx-drm-core.c +++ b/drivers/gpu/drm/imx/ipuv3/imx-drm-core.c @@ -34,13 +34,6 @@ module_param(legacyfb_depth, int, 0444); DEFINE_DRM_GEM_DMA_FOPS(imx_drm_driver_fops); -void imx_drm_connector_destroy(struct drm_connector *connector) -{ - drm_connector_unregister(connector); - drm_connector_cleanup(connector); -} -EXPORT_SYMBOL_GPL(imx_drm_connector_destroy); - static int imx_drm_atomic_check(struct drm_device *dev, struct drm_atomic_state *state) { diff --git a/drivers/gpu/drm/imx/ipuv3/imx-drm.h b/drivers/gpu/drm/imx/ipuv3/imx-drm.h index 57a95926c492..509f4c0a2cf0 100644 --- a/drivers/gpu/drm/imx/ipuv3/imx-drm.h +++ b/drivers/gpu/drm/imx/ipuv3/imx-drm.h @@ -26,8 +26,6 @@ extern struct platform_driver ipu_drm_driver; int imx_drm_encoder_parse_of(struct drm_device *drm, struct drm_encoder *encoder, struct device_node *np); -void imx_drm_connector_destroy(struct drm_connector *connector); - int ipu_planes_assign_pre(struct drm_device *dev, struct drm_atomic_state *state); diff --git a/drivers/gpu/drm/imx/ipuv3/imx-tve.c b/drivers/gpu/drm/imx/ipuv3/imx-tve.c index b49bddb85535..a5118504b522 100644 --- a/drivers/gpu/drm/imx/ipuv3/imx-tve.c +++ b/drivers/gpu/drm/imx/ipuv3/imx-tve.c @@ -307,9 +307,15 @@ static int imx_tve_atomic_check(struct drm_encoder *encoder, return 0; } +static void imx_tve_connector_destroy(struct drm_connector *connector) +{ + drm_connector_unregister(connector); + drm_connector_cleanup(connector); +} + static const struct drm_connector_funcs imx_tve_connector_funcs = { .fill_modes = drm_helper_probe_single_connector_modes, - .destroy = imx_drm_connector_destroy, + .destroy = imx_tve_connector_destroy, .reset = drm_atomic_helper_connector_reset, .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,