From patchwork Sat Apr 9 10:00:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 12807817 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 1AA70C433EF for ; Sat, 9 Apr 2022 10:00:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6B65E10E2A0; Sat, 9 Apr 2022 10:00:28 +0000 (UTC) Received: from aposti.net (aposti.net [89.234.176.197]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0A35F10E2A0 for ; Sat, 9 Apr 2022 10:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1649498423; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=A5PJEamvB/Q6ZdrsbhzIrxfL3V+SEu121g25tOfMR6k=; b=K0HGJxv37mBu5ndPyGax7E9gMrLHTdObUC76F2MRpH4+rdMGmFgkxSyrXr9KyoF2jV7e5X hzbkrhMbeW6m5Or/XLj/z0SmJbXHItUt+0fLyRC1SnfLMtV5F30+OH9KUcLhfv5WJJPbDw Pv9nsv+bcslHCLeYaR5Qm39g52ZuVI4= From: Paul Cercueil To: Thierry Reding , Sam Ravnborg Subject: [PATCH] drm/panel: newvision-nv3052c: Fix build Date: Sat, 9 Apr 2022 11:00:16 +0100 Message-Id: <20220409100016.9337-1-paul@crapouillou.net> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Rothwell , kbuild-all , kernel test robot , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Paul Cercueil , Christophe Branchereau Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The driver was compile-tested then rebased on drm-misc-next, and not compile-tested after the rebase; unfortunately the driver didn't compile anymore when it hit drm-misc-next. Fixes: 49956b505c53 ("drm/panel: Add panel driver for NewVision NV3052C based LCDs") Cc: Christophe Branchereau Cc: kbuild-all Cc: Stephen Rothwell Reported-by: kernel test robot Signed-off-by: Paul Cercueil Acked-by: Sam Ravnborg --- drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c b/drivers/gpu/drm/panel/panel-newvision-nv3052c.c index 127bcfdb59df..cf078f0d3cd3 100644 --- a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c +++ b/drivers/gpu/drm/panel/panel-newvision-nv3052c.c @@ -416,15 +416,13 @@ static int nv3052c_probe(struct spi_device *spi) return 0; } -static int nv3052c_remove(struct spi_device *spi) +static void nv3052c_remove(struct spi_device *spi) { struct nv3052c *priv = spi_get_drvdata(spi); drm_panel_remove(&priv->panel); drm_panel_disable(&priv->panel); drm_panel_unprepare(&priv->panel); - - return 0; } static const struct drm_display_mode ltk035c5444t_modes[] = {