diff --git a/ac108.c b/ac108.c index a2f8e52..9709cb8 100644 --- a/ac108.c +++ b/ac108.c @@ -1493,7 +1493,7 @@ __ret: return ret; } -static int ac108_i2c_remove(struct i2c_client *i2c) { +static void ac108_i2c_remove(struct i2c_client *i2c) { if (ac10x->codec != NULL) { snd_soc_unregister_codec(&ac10x->i2c[_MASTER_INDEX]->dev); ac10x->codec = NULL; @@ -1518,7 +1518,6 @@ __ret: kfree(ac10x); ac10x = NULL; } - return 0; } static const struct i2c_device_id ac108_i2c_id[] = { diff --git a/wm8960.c b/wm8960.c index 418245a..28ade11 100644 --- a/wm8960.c +++ b/wm8960.c @@ -1384,10 +1384,9 @@ static int wm8960_i2c_probe(struct i2c_client *i2c, return ret; } -static int wm8960_i2c_remove(struct i2c_client *client) +static void wm8960_i2c_remove(struct i2c_client *client) { snd_soc_unregister_codec(&client->dev); - return 0; } static const struct i2c_device_id wm8960_i2c_id[] = {