Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp515222rdb; Sat, 19 Aug 2023 10:51:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELao/kg5AX209cTHs2GdvGbSCaxMUpiE3pJmYIoZfVgK7LDyKxsnrNC400YZ4Kl2yzOjBD X-Received: by 2002:a05:6a20:5518:b0:13d:1d14:6693 with SMTP id ko24-20020a056a20551800b0013d1d146693mr1578032pzb.45.1692467490741; Sat, 19 Aug 2023 10:51:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692467490; cv=none; d=google.com; s=arc-20160816; b=iaFo9M48hTlKK0goy0lmHOTZ3pGSaFVWeH1BSLoqSze7X6EpmxyTi+FYGICEVJWIyD 8JNIbda4Ne4kFYpmLlE7f7W6VHRczlerzCWX+8KDSiiKiQw0Wevr8OvX/5hsIxcPpdxW rV8najCvmTPuSXue30o6hRTQEA9qocY8Iq3Rk4jV0EZotzkj7LwOzPTmZXoLK61+m3yL yd8KlgohThMWIIRW4LTuU0ExmG+Gj7OK/TPsGbBFhW6BSWk5h5wV8zQfr4EiC3E+rHon pQEy5BQ3JpS2QGIPzQnX3Ww+mmrrLc6Fh1EbzdKdGn2hEBlE1x9hBctmXiRQ0uKlhceV aTbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Zoq9E2uEgBQQ4Fgg8qQgjyhOqS1ilpAUDPD/cpTv8JY=; fh=UWUHlpYIyaM7sVynBT5Ky7qldVK8D81neqNGmwj4p+c=; b=k0hiJrx6lln60yq/YbM6EmnaJlVlbEPzqqzaymL/HkMReBPqWrwZOO3voL1R7Z/Bd5 E8g8K43MHd4DGwDvfIs9VmEBvB7y8Wxu2HRc3NI65VNRkRFWmMPZ5n+HvYnfqSjosdu4 9FsjwOW5KdW9RWhRQBy6aCk1sRhd0842m6FI226ZBV296kpzsSUFb25OOhFMkJo988FR sEOQF+828Rbx5GxplxpVoEMRUW6fd8Z9MgncfWVdjtXKWGOUrDNwEidVG5K/n+9t48la O6ETLy4L620oHQHGgUM8HfPYR+uEdJTthFhkxFB+WmHkVzczitPFCzNzvKOsBwRsTgSD wz7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id le13-20020a170902fb0d00b001bb162e944dsi3750003plb.51.2023.08.19.10.51.18; Sat, 19 Aug 2023 10:51:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244251AbjHPKpf (ORCPT + 99 others); Wed, 16 Aug 2023 06:45:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241085AbjHPKpD (ORCPT ); Wed, 16 Aug 2023 06:45:03 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDFB82710 for ; Wed, 16 Aug 2023 03:44:43 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:5d0c:f209:12a7:4ce5]) by albert.telenet-ops.be with bizsmtp id aAkh2A00k45ualL06AkhQq; Wed, 16 Aug 2023 12:44:41 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qWE0w-000osK-Ru; Wed, 16 Aug 2023 12:44:41 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qWDAw-00675X-NW; Wed, 16 Aug 2023 11:50:50 +0200 From: Geert Uytterhoeven To: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter , Thomas Zimmermann , Magnus Damm Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 18/41] drm: renesas: shmobile: Remove custom plane destroy callback Date: Wed, 16 Aug 2023 11:50:25 +0200 Message-Id: <4562ff5880d2d8681d62e0fcdca210bfd4778486.1692178020.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to call drm_plane_force_disable() from the plane's .destroy() callback, as the plane should have been disabled already before. See also commit 3c858a33858baa8c ("drm/plane_helper: don't disable plane in destroy function") for the generic plane helper case. After removing this call, shmob_drm_plane_destroy() becomes a simple wrapper around shmob_drm_plane_destroy(), hence replace it by the latter. Signed-off-by: Geert Uytterhoeven --- v3: - No changes, v2: - New. --- drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c b/drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c index 0b2ab153e9ae76df..3a5db319bad14218 100644 --- a/drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c +++ b/drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c @@ -176,16 +176,10 @@ static int shmob_drm_plane_disable(struct drm_plane *plane, return 0; } -static void shmob_drm_plane_destroy(struct drm_plane *plane) -{ - drm_plane_force_disable(plane); - drm_plane_cleanup(plane); -} - static const struct drm_plane_funcs shmob_drm_plane_funcs = { .update_plane = shmob_drm_plane_update, .disable_plane = shmob_drm_plane_disable, - .destroy = shmob_drm_plane_destroy, + .destroy = drm_plane_cleanup, }; static const uint32_t formats[] = { -- 2.34.1