|
|
@@ -1097,6 +1097,13 @@ static int aw9523_remove(struct i2c_client *client)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
|
|
+static void aw9523_remove_void(struct i2c_client *client)
|
|
|
+{
|
|
|
+ aw9523_remove(client);
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
static const struct i2c_device_id aw9523_i2c_id_table[] = {
|
|
|
{ "aw9523_i2c", 0 },
|
|
|
{ }
|
|
|
@@ -1114,7 +1121,11 @@ static struct i2c_driver aw9523_driver = {
|
|
|
.of_match_table = of_aw9523_i2c_match,
|
|
|
},
|
|
|
.probe = aw9523_probe,
|
|
|
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
|
|
+ .remove = aw9523_remove_void,
|
|
|
+ #else
|
|
|
.remove = aw9523_remove,
|
|
|
+ #endif
|
|
|
.id_table = aw9523_i2c_id_table,
|
|
|
};
|
|
|
module_i2c_driver(aw9523_driver);
|