diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2022-10-16 10:33:50 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-10-18 12:01:48 +0100 |
commit | 4e8ff35878685291978b93543d6b9e9290be770a (patch) | |
tree | 1bf93d8c44235094c62780a210468e7a006db67f /sound | |
parent | c9a3545b1d771fb7b06a487796c40288c02c41c5 (diff) | |
download | linux-4e8ff35878685291978b93543d6b9e9290be770a.tar.gz linux-4e8ff35878685291978b93543d6b9e9290be770a.tar.bz2 linux-4e8ff35878685291978b93543d6b9e9290be770a.zip |
ASoC: codecs: tlv320adc3xxx: Wrap adc3xxx_i2c_remove() in __exit_p()
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 <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/3225ba4cfe558d9380155e75385954dd21d4e7eb.1665909132.git.geert@linux-m68k.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/tlv320adc3xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tlv320adc3xxx.c b/sound/soc/codecs/tlv320adc3xxx.c index 748998e48af9..8a0965cd3e66 100644 --- a/sound/soc/codecs/tlv320adc3xxx.c +++ b/sound/soc/codecs/tlv320adc3xxx.c @@ -1450,7 +1450,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, }; |