Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp931407rwb; Wed, 26 Jul 2023 05:20:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlEn7twrUW9w1jMv7kLgERYGlb0QqRip/en43LWZeEM8jBQMjjyZWTdx/d1PItWA2mGXOANf X-Received: by 2002:a17:907:7883:b0:994:4be4:a106 with SMTP id ku3-20020a170907788300b009944be4a106mr1480412ejc.10.1690374044855; Wed, 26 Jul 2023 05:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690374044; cv=none; d=google.com; s=arc-20160816; b=x8apK/pyssEq5zXv4BiJoca8fYWv4NrjXtxomrWAdVZ5LIBjuN18mwx3Twmz6WqdKX 5j3wSh058d7N8TOi+XLdDdHy90e+MesrRCnsNIywlIyBt5ZbfgpB/JMM1SAFx3VC/av0 Vws07xiULQ5jcIb5u5nd3sLGwc6E4mmtD/LAr5HW0I9Qlm25s2m2GQJRzPhAdBah2kF9 EEKOVN94eyPs2M6XqtactEXDsvoTdTJTbrOcIH9WlxgxpfusUHglpH4ZytNx0pusYS+0 Zl87uUNPAwOUy/oPHPdjUmXTFmgPi2R9MJSFuvRSiTtnyixq4gtuteZn2MsCAlo4bKuu qNWA== 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 :message-id:date:subject:cc:to:from; bh=pk/eUKybSVAN6R4bCCEOniwss9LfhUVawZn5MeDYnBM=; fh=knmpzD4kTXWExrHvL3E2AarOvROlA5hJHF3AHJT0OCI=; b=BVvOZ3Ttq7xvVyIlQz0mjmbet9Vgjsm46r5R+6BwmRUYWewDIMncpIuP5RKJg64RfK W6L0LjFgR6rqQjYg+6CdJN+92u6Y9BKmHcmsQ5IszkiDJ9GtXLgm59O+N/M73jbrUYCJ NZfUlwR6yNIDo8E4byJbfQzIHsBe9xeaCPIlwLvyoLhg91RxO29XmZ0jb1wyLrHtHVeS 7dmtTZOLKAozykqYdVrpK1gB2dtEBcFGzKbmrW2sOb7LKO7e+UCtwhPb5T4q2C2Nef2l Hd//rNqcnnb2xduj/xMQC2Mb6iGPuxERUiU8dW5l/RuDfunVbRiMVp9QHZxPq//GRfU/ eQsQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a1709060e4800b00988c76f9d4bsi8731348eji.347.2023.07.26.05.20.19; Wed, 26 Jul 2023 05:20:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231579AbjGZLGQ (ORCPT + 99 others); Wed, 26 Jul 2023 07:06:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbjGZLGP (ORCPT ); Wed, 26 Jul 2023 07:06:15 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0DB98AC for ; Wed, 26 Jul 2023 04:06:12 -0700 (PDT) Received: from loongson.cn (unknown [10.180.13.124]) by gateway (Coremail) with SMTP id _____8DxBfEi_sBkhTAKAA--.25378S3; Wed, 26 Jul 2023 19:06:10 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.124]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx_yMf_sBk96o7AA--.53738S4; Wed, 26 Jul 2023 19:06:07 +0800 (CST) From: YingKun Meng To: broonie@kernel.org, lgirdwood@gmail.com Cc: krzysztof.kozlowski@linaro.org, xry111@xry111.site, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, loongson-kernel@lists.loongnix.cn, YingKun Meng , kernel test robot Subject: [PATCH] ASoC: loongson: drop of_match_ptr for OF device id Date: Wed, 26 Jul 2023 19:05:16 +0800 Message-Id: <20230726110516.703342-1-mengyingkun@loongson.cn> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Dx_yMf_sBk96o7AA--.53738S4 X-CM-SenderInfo: 5phqw55lqjy33q6o00pqjv00gofq/1tbiAQAEDGTAnS8EmQABsD X-Coremail-Antispam: 1Uk129KBj93XoW7Zw1rCr45WryDGF48CrWUJrc_yoW8JFyrpa n3A3yDWry5Gr47Awn5XrW5AF1UA3s8ZwnrWa17Jw1xWr9rAw1Uu3s7KF17ZF42vryUG34j vrW8CrW8W3WDXrbCm3ZEXasCq-sJn29KB7ZKAUJUUUU7529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUU9Fb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2kKe7AKxVWUXVWUAwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07 AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWU AVWUtwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7V AKI48JMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI1I0E14v2 6r1Y6r17MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17 CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF 0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIx AIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2 KfnxnUUI43ZEXa7IU8uuWJUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 The ASoC Sound Card driver can be compile tested with !CONFIG_OF making 'loongson_asoc_dt_ids' unused: sound/soc/loongson/loongson_card.c:200:34: warning: unused variable 'loongson_asoc_dt_ids' [-Wunused-const-variable] As krzysztof advice, we drop of_match_ptr so the device id can also be used on ACPI. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202307242008.xqdjgk04-lkp@intel.com Fixes: d24028606e76 ("ASoC: loongson: Add Loongson ASoC Sound Card Support") Signed-off-by: YingKun Meng --- sound/soc/loongson/loongson_card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/loongson/loongson_card.c b/sound/soc/loongson/loongson_card.c index 9ded16329747..406ee8db1a3c 100644 --- a/sound/soc/loongson/loongson_card.c +++ b/sound/soc/loongson/loongson_card.c @@ -208,7 +208,7 @@ static struct platform_driver loongson_audio_driver = { .driver = { .name = "loongson-asoc-card", .pm = &snd_soc_pm_ops, - .of_match_table = of_match_ptr(loongson_asoc_dt_ids), + .of_match_table = loongson_asoc_dt_ids, }, }; module_platform_driver(loongson_audio_driver); -- 2.33.0