From patchwork Mon Jun 7 19:08:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 12304515 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99A0EC47094 for ; Mon, 7 Jun 2021 19:08:16 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 40C5561130 for ; Mon, 7 Jun 2021 19:08:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 40C5561130 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A2AB96E9D6; Mon, 7 Jun 2021 19:08:15 +0000 (UTC) Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by gabe.freedesktop.org (Postfix) with ESMTPS id C19B56E9D6 for ; Mon, 7 Jun 2021 19:08:14 +0000 (UTC) Received: by mail-pl1-x631.google.com with SMTP id 11so9248774plk.12 for ; Mon, 07 Jun 2021 12:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9FzXIDnzKXRSrBY8Kk8hJH7reALJLs5lmYw6nUaN5uc=; b=t+W6xrNNSjfNOCvYsUQEVXevI7eJShRDECWAbs1R/BLAVY7EagUS1iKwYvm7b0WGiv dMiKzZPgWq+qHj30En2acgVajhuR7W+4xbwBkfnRjutecmsVPMRtRQxYMGK/zRxzz7w/ /H8ElvbZssb7d9PdDeUPK4hDApDfyWSFBEpL5G96l4Izy/GiERnZ6KCk6sftRXt/5fjf 7/tF/heBi8mM4YY6vyruyl/svuMdbQJspgPOVNb8q7pRWwEtyZvp8b3SJNbxyuxvG8P2 DqxsomQNaPgULs5kkEyeMpqj+FOD8p0VpQAU8RowUegwiUbwfWUbKQBt05NNby2HcKIq 0vuQ== 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:mime-version :content-transfer-encoding; bh=9FzXIDnzKXRSrBY8Kk8hJH7reALJLs5lmYw6nUaN5uc=; b=gnBxDXkZye/34HZint25x/2ihvRdsNKpwzJyoS8BMJdZS+PBjFYpTooF0+pZ3VUvVw bVrsyEsJYOq4A8yjWjjlPeWGrdh2EKJx8XnWVGzflbXlRdDdon5JZZ4gTQuhEckz/P8O FettEksDqxZjcAvvlYxb+4tVh/J0SRISIsxXkR2w1VhslH4UJWwihF8o7QM67fidwycA T6pScloMJ6SHzzLdbqpK8rDMtkgOOIB0uOL3aMXWTNK9EIHls1yAH/yob+ZF+fiTtFtH 0Tpy+hc21MdmuKrfJ4GBJLzDCcv4joDfuEg6YEF0/FyCLNXAZ25Fo+pxdjrK8Y0XnGj3 NbUg== X-Gm-Message-State: AOAM530uqJizAaLoD0KK9be06Kv/7YXDqmyHDy/v86lhc0U8hR9kB7lx n3gtNGpG/Wq0n4zcRvLuxzs= X-Google-Smtp-Source: ABdhPJwDxcNV9QzGcvVYMSqvZD5/AXHA6iscVWHj+JEY65hjgA3g3ZzFMc6bqEz+LF3TW+VyFm0RIA== X-Received: by 2002:a17:902:8a83:b029:10f:45c4:b435 with SMTP id p3-20020a1709028a83b029010f45c4b435mr18173780plo.17.1623092894407; Mon, 07 Jun 2021 12:08:14 -0700 (PDT) Received: from localhost.localdomain ([2405:201:9005:8001:a09b:9c7c:331d:38fe]) by smtp.gmail.com with ESMTPSA id s22sm8588876pfe.208.2021.06.07.12.08.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 12:08:13 -0700 (PDT) From: Souptick Joarder To: hjc@rock-chips.com, heiko@sntech.de, airlied@linux.ie, daniel@ffwll.ch Subject: [PATCH] drm/rockchip: remove of_match_ptr() from vop_driver_dt_match Date: Tue, 8 Jun 2021 00:38:00 +0530 Message-Id: <20210607190800.3992-1-jrdr.linux@gmail.com> X-Mailer: git-send-email 2.25.1 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: kernel test robot , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Souptick Joarder , Robin Murphy , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" kernel test robot throws warning when CONFIG_OF not set. >> drivers/gpu/drm/rockchip/rockchip_vop_reg.c:1038:34: warning: unused variable 'vop_driver_dt_match' [-Wunused-const-variable] static const struct of_device_id vop_driver_dt_match[] = { Fixed it by removing of_match_ptr(). Reported-by: kernel test robot Signed-off-by: Souptick Joarder Cc: Robin Murphy --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c index ca7cc82125cb..1f7353f0684a 100644 --- a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c +++ b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c @@ -1124,6 +1124,6 @@ struct platform_driver vop_platform_driver = { .remove = vop_remove, .driver = { .name = "rockchip-vop", - .of_match_table = of_match_ptr(vop_driver_dt_match), + .of_match_table = vop_driver_dt_match, }, };