From patchwork Sun Oct 16 08:33:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 3070 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1078513wrs; Sun, 16 Oct 2022 09:27:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6GZziHJ0oAYF4XiYRegUKbrqRSK5kCUlH/nvT/SPk6xgC8mh/dUVn9BC3XuKtZlWgpE17H X-Received: by 2002:a17:902:dad2:b0:17f:8290:fce0 with SMTP id q18-20020a170902dad200b0017f8290fce0mr7643786plx.168.1665937625804; Sun, 16 Oct 2022 09:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665937625; cv=none; d=google.com; s=arc-20160816; b=zAo7NyYUGOmj8KDdSWBDXpmlz2NDCQR+5pjrK/ecg3lbwi5orPHgYlLiQj6zPpbjx4 XtZcxAq7T5aFkM7fdOXKC88CcaUGWPPw+eGflFTpY7emr5GdyFBNFn3LT97GM2rjDY4/ PGjMESV7vGfjB5Olorhi7hg7CyPc9XMJ33kIQ0Qxdr5SZShRfPvJqF9u7EeUUxpNrRTE N+8uImwVVvLnyZ8qlIW5huuf4EHchtZzALzABmiejJMKVYPk2c330suGjHuEA+7U46lB U6//i+CxLF38ouUe3wl6V8yqXdJpFcZJaq70dLbVt55jsgxKuKnswIM+d8eqtmkIxakX 6rhw== 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=BbXzTk3SlYERL9wwTZE0MMSbE7/DuhNKIWgd9UzJuBE=; b=TAsnPhWSe9UkcK8HvTwu5wPNH12jktSrUE4adhrJ3Eq/5YkL0stcMpzNWqYGinNJ+a Gug76n4oGw1hbns+SzFsRj2lTsYqXLrXXQna6aG205JPYMaX2g8izdFATuIPCfZelfUz ZkGSrPwmllPVkpCEjLBs2a5aXP9pSSIEsOdXjfBqbXVfGWmI3KVuv0yM65qK9ANZOfBp q3DJ2DGzSzz8f4mQttZPyZAH8W3oMKHLOF1ZrytJlUi9h83Mp1NJSpUxiEOx5cYYvlq1 1PxRvES70ZnHoat5iX2E34Q7hn9qsP7FI5BnbR9Midesn8we4Cci1B0ixuYQxHg4PJKg AihQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 7-20020a17090a098700b0020a61adc286si12825454pjo.25.2022.10.16.09.26.52; Sun, 16 Oct 2022 09:27:05 -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 S229979AbiJPQ02 (ORCPT + 99 others); Sun, 16 Oct 2022 12:26:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbiJPQ0L (ORCPT ); Sun, 16 Oct 2022 12:26:11 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 772153C8C5 for ; Sun, 16 Oct 2022 09:25:17 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed50:166:9ae8:9d22:15bc]) by albert.telenet-ops.be with bizsmtp id YgRB280021KXA1b06gRBlU; Sun, 16 Oct 2022 18:25:11 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ok6Rq-001oFR-IZ; Sun, 16 Oct 2022 18:25:10 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ojz5j-000MFM-DJ; Sun, 16 Oct 2022 10:33:51 +0200 From: Geert Uytterhoeven To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Ricard Wanderlof Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] ASoC: codecs: tlv320adc3xxx: Wrap adc3xxx_i2c_remove() in __exit_p() Date: Sun, 16 Oct 2022 10:33:50 +0200 Message-Id: <3225ba4cfe558d9380155e75385954dd21d4e7eb.1665909132.git.geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746862211956017493?= X-GMAIL-MSGID: =?utf-8?q?1746862211956017493?= If CONFIG_SND_SOC_TLV320ADC3XXX=y: `.exit.text' referenced in section `.data' of sound/soc/codecs/tlv320adc3xxx.o: defined in discarded section `.exit.text' of sound/soc/codecs/tlv320adc3xxx.o Fix this by wrapping the adc3xxx_i2c_remove() pointer in __exit_p(). Fixes: e9a3b57efd28fe88 ("ASoC: codec: tlv320adc3xxx: New codec driver") Signed-off-by: Geert Uytterhoeven --- sound/soc/codecs/tlv320adc3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tlv320adc3xxx.c b/sound/soc/codecs/tlv320adc3xxx.c index baab320ef98879d7..a969547708d49676 100644 --- a/sound/soc/codecs/tlv320adc3xxx.c +++ b/sound/soc/codecs/tlv320adc3xxx.c @@ -1449,7 +1449,7 @@ static struct i2c_driver adc3xxx_i2c_driver = { .of_match_table = tlv320adc3xxx_of_match, }, .probe_new = adc3xxx_i2c_probe, - .remove = adc3xxx_i2c_remove, + .remove = __exit_p(adc3xxx_i2c_remove), .id_table = adc3xxx_i2c_id, };