From patchwork Fri Mar 10 22:30:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170269 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF4EFC6FA99 for ; Fri, 10 Mar 2023 22:32:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232136AbjCJWcJ (ORCPT ); Fri, 10 Mar 2023 17:32:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232144AbjCJWbY (ORCPT ); Fri, 10 Mar 2023 17:31:24 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1AA6147826 for ; Fri, 10 Mar 2023 14:30:23 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id da10so26550018edb.3 for ; Fri, 10 Mar 2023 14:30:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678487414; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=61DvhmsO4xSNuNORHw5ib//2wHgpkfyqFxtOWBFNJmo=; b=aAN3J7ps3GBSOD08xvYIioPIS7Z+DyEdXyhKpTgdWiaio98OS+NjpoqRhFy/aa1Uc4 /nUwOyqfXMQiTIfShuaZAG3QBNVdNYWPfYyg+YUOsYb2MfBIvteHxewDJBSNzNW3JhjP tDsj59shgVnWSS3HxDq4UvVOuDTPRbOtrxvz0bnEqka0mFhCpoUEDSJK0D+OK4TY5pWv UsV7UX3oh8t+YCHsh8a+qF2tjbg1h8f6HrdkrOm1WKXAsPJCOMjTYTFrNf3ZBtZrGCey z4GO9Q08HD9sWTfbEgm8WpzKplUlQOgHnaOsoZkhiIJ7VaBA7fY+sSO5coRF+uL4h2AW LMOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678487414; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=61DvhmsO4xSNuNORHw5ib//2wHgpkfyqFxtOWBFNJmo=; b=vB9FTmUC6SgXCpeddvNPmD0aQ8JlTZMfr7BmKmWO4gmtf8rfOJ+5W+UGHD83RV6CuZ Z9o07ykl1KvIpk25sXow9zhcnCLIXiwrTPc1/wPtov9FvdmI+MHXrHW3wfQf439rTb+j FXSnUT0UeM3TPKfvkqqTkm0gjKk+fERs4aq4SmnZyWn36pl0Xnqb8HG+lSzP22VLySRy U5c1RkuJ8GpnLgpYxj8Y5QhmrEeLudPxWOMgScIbh1PsHF6NjcikhWwbeLhI5ALXtoP1 +kwOXnJk6gLL7QWBgw4Ci/w5ImVxZyCOSXvCR5Fb3NkgBl98Lxu3lwB98PDMAjwU6TKR Kw1w== X-Gm-Message-State: AO0yUKXaE9Jcg+KgZI2Lf4VFcs3ynM6+9J5zS6h8uu/iPWQVWZvlmkwm +X8tRS+23Qnq13nJe6hy6Hd7vw== X-Google-Smtp-Source: AK7set8IwF9MMOqQdMWkdrh2f4Xq9KnkoKxFJPEe/j1hoU2JE80HulHxMpzUaPXGKchFiqU+1e16uQ== X-Received: by 2002:a17:906:434c:b0:87b:6bbb:11ac with SMTP id z12-20020a170906434c00b0087b6bbb11acmr26776453ejm.60.1678487414349; Fri, 10 Mar 2023 14:30:14 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id ht21-20020a170907609500b008d57e796dcbsm375533ejc.25.2023.03.10.14.30.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 14:30:14 -0800 (PST) From: Krzysztof Kozlowski To: Wim Van Sebroeck , Guenter Roeck , Joel Stanley , Andrew Jeffery , linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] watchdog: aspeed: Drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 23:30:12 +0100 Message-Id: <20230310223012.315897-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it is not relevant here). drivers/watchdog/aspeed_wdt.c:56:34: error: ‘aspeed_wdt_of_table’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck --- drivers/watchdog/aspeed_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/aspeed_wdt.c b/drivers/watchdog/aspeed_wdt.c index c1e79874a2bb..b72a858bbac7 100644 --- a/drivers/watchdog/aspeed_wdt.c +++ b/drivers/watchdog/aspeed_wdt.c @@ -465,7 +465,7 @@ static struct platform_driver aspeed_watchdog_driver = { .probe = aspeed_wdt_probe, .driver = { .name = KBUILD_MODNAME, - .of_match_table = of_match_ptr(aspeed_wdt_of_table), + .of_match_table = aspeed_wdt_of_table, }, };