Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3082325rwl; Thu, 13 Apr 2023 15:41:08 -0700 (PDT) X-Google-Smtp-Source: AKy350bROCf7DY1Gy7ro5qsZaIEmC0tAMtq0YR1xSPp6bxzUMwC3ePlIREq1wQUCsNgLKTmRcXyZ X-Received: by 2002:a17:90a:6749:b0:246:696f:b1f1 with SMTP id c9-20020a17090a674900b00246696fb1f1mr3264725pjm.6.1681425667983; Thu, 13 Apr 2023 15:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681425667; cv=none; d=google.com; s=arc-20160816; b=XrzkcBYZGX2czJJ3SEKuwGmtk+k2gd6MTUDbQlzKYa7+uU6nCpjTf8GY5brWe8KBFI xWm/n4ZJcbBaP0qaa9tBcrayew1kwrZubmIDCeY/lDbLNjyrahNASXb34bJZZ6uNhuXz +PQAtPx/Ua+Ia8mQrNzGhd1cDu7ieUJZ+KLD4c3XdYfdGfSI5i765jKYKzmVeKOidixi RS63Q22yMKaqHcuXcStoNXgqliYp8pqN0tvKogvETMCF/A/xrzYtIiX8OklLGt+yK91U 7WhUJZsd9xKOdbVNro2MALGKoL5guvc4og8lSKmM0Y7tMDVgUZOl2HbKAvNDHXKMv8yx IDmg== 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 :dkim-signature; bh=JCoW1K84UBAB6YbJ2OyLGn11oqyJIF16DuvWW9883xU=; b=X1PnVJ/zTj+ASH+UmmkS0PZH/47shtkcObPm3KrmIoGkbbabKMQFAVg4vVNVubIc27 vt4I6QruyxBdIkFQVEihZ4+CbvqsVL0YeuuNtlnhWh+ZUbCyMQpeKNtwdZ0Lo9Zh2ECU 9u8qvxT6U3wOCTTE8QTq2sAPDNIzpCvM6riUI85RjGplVW9HWFsYja/JGEagH2t4AUfp yVOoYFSEeZFIOIH8bmg6ksxG69xOzTI3Oz2xTyBqPCKjfUyyI+TTL1zsGPIM7xTXN+fN MSCzNDnz/rK/YghNu7RyEtzLuzxlfVQ9chX3C81o81RwsUZ5B0hX1O16I+YlmXAMe8ep kOsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OZ5jLHqB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020a17090a598400b0023a6f4e0510si5471063pji.155.2023.04.13.15.40.56; Thu, 13 Apr 2023 15:41:07 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OZ5jLHqB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230341AbjDMWix (ORCPT + 99 others); Thu, 13 Apr 2023 18:38:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229933AbjDMWij (ORCPT ); Thu, 13 Apr 2023 18:38:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0027449C for ; Thu, 13 Apr 2023 15:38:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C983464221 for ; Thu, 13 Apr 2023 22:38:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD04DC4339B; Thu, 13 Apr 2023 22:38:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681425517; bh=JSKw91yT9unPki7iqS8K+SpAIxQ92VW+9Ul5dHK7ee8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OZ5jLHqBDjtm0wkY5skzvSJ28sjOWrVstE0e65fCyeGeGxIkudiPptrbWYWiTSL+p OK/uUrmjEKoQ3w8JO9azM4rFoMfrDLbLhy1Xyg4P/cGC2gkz9CkSeY3LE3ayTGPm7z GMC65ZY6CN5OqWhsducDzm3PZF+AGFI4BVuEGayGKM4rnaz2GewNsxRxGq57Atq29I YDPS3IXV0uNL21SkMvLur2ba1uwBqraM1SrL5apeE6zHfgWxQhCN3HJ6JV5IwtebAD 8re6Eemv4QytQGTONgHK7+Hih5yQ26zHmjkUoyJ5I9WhvN9hzvOCLY/LpmBtkfxKOx sXkhpFGa/hiqA== From: Stephen Boyd To: Greg Kroah-Hartman Cc: Krzysztof Kozlowski , linux-kernel@vger.kernel.org, patches@lists.linux.dev, AngeloGioacchino Del Regno Subject: [PATCH 4/6] spmi: mtk-pmif: Drop of_match_ptr for ID table Date: Thu, 13 Apr 2023 15:38:32 -0700 Message-ID: <20230413223834.4084793-5-sboyd@kernel.org> X-Mailer: git-send-email 2.40.0.634.g4ca3ef3211-goog In-Reply-To: <20230413223834.4084793-1-sboyd@kernel.org> References: <20230413223834.4084793-1-sboyd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 From: Krzysztof Kozlowski 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/spmi/spmi-mtk-pmif.c:517:34: error: ‘mtk_spmi_match_table’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20230310222857.315629-2-krzysztof.kozlowski@linaro.org Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Stephen Boyd --- drivers/spmi/spmi-mtk-pmif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spmi/spmi-mtk-pmif.c b/drivers/spmi/spmi-mtk-pmif.c index fbcb3921e70c..b3c991e1ea40 100644 --- a/drivers/spmi/spmi-mtk-pmif.c +++ b/drivers/spmi/spmi-mtk-pmif.c @@ -529,7 +529,7 @@ MODULE_DEVICE_TABLE(of, mtk_spmi_match_table); static struct platform_driver mtk_spmi_driver = { .driver = { .name = "spmi-mtk", - .of_match_table = of_match_ptr(mtk_spmi_match_table), + .of_match_table = mtk_spmi_match_table, }, .probe = mtk_spmi_probe, .remove_new = mtk_spmi_remove, -- https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/ https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git