mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
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:
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user