|
@@ -334,12 +334,20 @@ static int32_t cam_actuator_driver_i2c_probe(struct i2c_client *client,
|
|
return rc;
|
|
return rc;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#if KERNEL_VERSION(6, 1, 0) <= LINUX_VERSION_CODE
|
|
|
|
+void cam_actuator_driver_i2c_remove(
|
|
|
|
+ struct i2c_client *client)
|
|
|
|
+{
|
|
|
|
+ component_del(&client->dev, &cam_actuator_i2c_component_ops);
|
|
|
|
+}
|
|
|
|
+#else
|
|
static int32_t cam_actuator_driver_i2c_remove(
|
|
static int32_t cam_actuator_driver_i2c_remove(
|
|
struct i2c_client *client)
|
|
struct i2c_client *client)
|
|
{
|
|
{
|
|
component_del(&client->dev, &cam_actuator_i2c_component_ops);
|
|
component_del(&client->dev, &cam_actuator_i2c_component_ops);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
static int cam_actuator_platform_component_bind(struct device *dev,
|
|
static int cam_actuator_platform_component_bind(struct device *dev,
|
|
struct device *master_dev, void *data)
|
|
struct device *master_dev, void *data)
|