From nobody Tue Dec 16 04:34:13 2025 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 934D6C433FE for ; Sun, 16 Oct 2022 16:26:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230026AbiJPQ0a (ORCPT ); Sun, 16 Oct 2022 12:26:30 -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 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" If CONFIG_SND_SOC_TLV320ADC3XXX=3Dy: `.exit.text' referenced in section `.data' of sound/soc/codecs/tlv320ad= c3xxx.o: defined in discarded section `.exit.text' of sound/soc/codecs/tlv3= 20adc3xxx.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/tlv320adc3= xxx.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 =3D { .of_match_table =3D tlv320adc3xxx_of_match, }, .probe_new =3D adc3xxx_i2c_probe, - .remove =3D adc3xxx_i2c_remove, + .remove =3D __exit_p(adc3xxx_i2c_remove), .id_table =3D adc3xxx_i2c_id, }; =20 --=20 2.25.1