diff --git a/drivers/misc/sx937x_multi/sx937x_multi.c b/drivers/misc/sx937x_multi/sx937x_multi.c index f6cc48b01b21..dd02034382d5 100644 --- a/drivers/misc/sx937x_multi/sx937x_multi.c +++ b/drivers/misc/sx937x_multi/sx937x_multi.c @@ -1528,7 +1528,11 @@ Hardware_CheckFail: * \param client Pointer to i2c_client struct * \return Value 0 */ +#if KERNEL_VERSION(6, 1, 0) > LINUX_VERSION_CODE static int sx937x_remove(struct i2c_client *client) +#else +static void sx937x_remove(struct i2c_client *client) +#endif { psx937x_platform_data_t pplatData =0; struct _buttonInfo *pCurrentbutton; @@ -1563,7 +1567,10 @@ static int sx937x_remove(struct i2c_client *client) } } } - return 0; +#if KERNEL_VERSION(6, 1, 0) > LINUX_VERSION_CODE + return 0; +#endif + } /*====================================================*/ /***** Kernel Suspend *****/