ASoC: es7243e: Don't strip remove function when driver is builtin

Fixes W=1 modpost warning:
WARNING: modpost: sound/soc/codecs/es7243e.o: section mismatch in reference:
es7243e_i2c_driver (section: .data) -> es7243e_i2c_remove (section: .exit.text)

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5ce3f1f539e8f3e73277db40d97223bbaf38424a
This commit is contained in:
Tao Huang
2025-09-11 18:31:14 +08:00
parent ac8bace64e
commit b6e19cb5c8

View File

@@ -2391,7 +2391,7 @@ es7243e_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *i2c_id)
return ret;
}
static void __exit es7243e_i2c_remove(struct i2c_client *i2c)
static void es7243e_i2c_remove(struct i2c_client *i2c)
{
sysfs_remove_group(&i2c->dev.kobj, &es7243e_debug_attr_group);
}
@@ -2613,7 +2613,7 @@ static struct i2c_driver es7243e_i2c_driver = {
#endif
},
.probe = es7243e_i2c_probe,
.remove = __exit_p(es7243e_i2c_remove),
.remove = es7243e_i2c_remove,
.class = I2C_CLASS_HWMON,
.id_table = es7243e_i2c_id,