From patchwork Wed Aug 23 15:10:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13362693 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 109F1EE4993 for ; Wed, 23 Aug 2023 15:11:48 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=qQlnhVo23opRWJxS5bZUmqq6jux0pPU8kMu5+z1S4zg=; b=RZgq6G2yH2jB6Y cQeYryOELbiL5d9a8djxstDmDbG6hocXL0aI2BTomzWoam88iZRk1b/YPpZDMzoLHPv6eh7HzfRNi kCdgQu2b/OaC0EQWNg/Nox6x0I15B4wdYu7W2fR25E8Oj6E7OxcUjvsCvRY5Mm+TyP6neQX+S4nBB qBo1Pgw/OAAfceqzdjRMW3pJGyV/oneBN6dumiwZA6JBZ7z2J0MwvD1Y93tifDOcyculxRXthmId7 TezH1URIf9CgAjLavUCCfp7wsJ/uVz816tbAFUOaYNYPxNNNZGX9FuSlphTf2FxKA/HuMHQqUPvS8 0Ig1xxomzwLOQzMIi0DA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYpVv-000vf9-0c; Wed, 23 Aug 2023 15:11:19 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYpVs-000veL-0P for linux-arm-kernel@lists.infradead.org; Wed, 23 Aug 2023 15:11:17 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6883964804; Wed, 23 Aug 2023 15:11:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25581C433C9; Wed, 23 Aug 2023 15:11:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692803475; bh=PafhZcJT5SQLA6QnjYq4kDAbgIm4cBuEG5/om2ECzEM=; h=From:To:Cc:Subject:Date:From; b=CTg0dxn2ottiJGvb2EFmf9W3p6crkzpOyJ8nPYWGbQqUgiFIlHILV+QeINMIbs2db wJ4rTwnm2Nw4MGbO2f/RacNnAWl09a28H0f+J0lgCb5IQ9b94UowanZtP8BbnIF/1A 3w/8BcesIFouUcwW2l1hGyHabhiXsUcZ4XxTrFaO0zQIbBUieZQyqRcK4HogyQnJor j2pMmLnd5ZQWFp68/7qoIUc3/NfBYMqT6jrS3MII+gL4ZPxcRclABAYEqq9Rf3Jppv GeKCf+1aE3zxPAZSGc4oxdXDujDeDKS8AdoeR4QNw6pUaR/BQjyPeyro2iPvrwdG6B I2fq+5sesLO/w== Received: (nullmailer pid 2357148 invoked by uid 1000); Wed, 23 Aug 2023 15:11:12 -0000 From: Rob Herring To: Wim Van Sebroeck , Guenter Roeck , Maxime Coquelin , Alexandre Torgue Cc: kernel test robot , linux-watchdog@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] watchdog: stm32: Drop unnecessary of_match_ptr() Date: Wed, 23 Aug 2023 10:10:59 -0500 Message-Id: <20230823151059.2356881-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230823_081116_204662_87FB7FAD X-CRM114-Status: GOOD ( 13.18 ) 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 With COMPILE_TEST recently enabled, 0-day reports a warning: drivers/watchdog/stm32_iwdg.c:215:34: warning: 'stm32_iwdg_of_match' defined but not used [-Wunused-const-variable=] As STM32 platforms are always used with DT, drop the of_match_ptr(). Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202308211837.4VBSUAtZ-lkp@intel.com/ Signed-off-by: Rob Herring Reviewed-by: Guenter Roeck --- drivers/watchdog/stm32_iwdg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/stm32_iwdg.c b/drivers/watchdog/stm32_iwdg.c index 570a71509d2a..9a554a3db4e2 100644 --- a/drivers/watchdog/stm32_iwdg.c +++ b/drivers/watchdog/stm32_iwdg.c @@ -288,7 +288,7 @@ static struct platform_driver stm32_iwdg_driver = { .probe = stm32_iwdg_probe, .driver = { .name = "iwdg", - .of_match_table = of_match_ptr(stm32_iwdg_of_match), + .of_match_table = stm32_iwdg_of_match, }, }; module_platform_driver(stm32_iwdg_driver);