Пример #1
0
static int wm8400_i2c_remove(struct i2c_client *i2c)
{
	struct wm8400 *wm8400 = i2c_get_clientdata(i2c);

	wm8400_release(wm8400);

	return 0;
}
Пример #2
0
static int wm8400_i2c_remove(struct i2c_client *i2c)
{
    struct wm8400 *wm8400 = i2c_get_clientdata(i2c);

    wm8400_release(wm8400);
    regmap_exit(wm8400->regmap);
    kfree(wm8400);

    return 0;
}