mfd: rk806-i2c: Fix compilation errors on kernel 6.1
drivers/mfd/rk806-i2c.c:56:14: error: incompatible function pointer types initializing 'void (*)(struct i2c_client *)' with an expression of type 'int (struct i2c_client *)'
Fixes: b473fca294 ("mfd: rk806: Add RK806 support i2c")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I00e7088be388222a914824fbc5c5e1ebef021e8a
This commit is contained in:
parent
8d8f2bbc40
commit
48eed3442f
1 changed files with 1 additions and 3 deletions
|
|
@ -38,13 +38,11 @@ static int rk806_i2c_probe(struct i2c_client *client,
|
|||
return rk806_device_init(rk806);
|
||||
}
|
||||
|
||||
static int rk806_remove(struct i2c_client *client)
|
||||
static void rk806_remove(struct i2c_client *client)
|
||||
{
|
||||
struct rk806 *rk806 = i2c_get_clientdata(client);
|
||||
|
||||
rk806_device_exit(rk806);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct i2c_driver rk806_i2c_driver = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue