mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user