hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/i2c/ad5820.c
....@@ -329,18 +329,18 @@
329329
330330 ret = media_entity_pads_init(&coil->subdev.entity, 0, NULL);
331331 if (ret < 0)
332
- goto cleanup2;
332
+ goto clean_mutex;
333333
334334 ret = v4l2_async_register_subdev(&coil->subdev);
335335 if (ret < 0)
336
- goto cleanup;
336
+ goto clean_entity;
337337
338338 return ret;
339339
340
-cleanup2:
341
- mutex_destroy(&coil->power_lock);
342
-cleanup:
340
+clean_entity:
343341 media_entity_cleanup(&coil->subdev.entity);
342
+clean_mutex:
343
+ mutex_destroy(&coil->power_lock);
344344 return ret;
345345 }
346346
....@@ -359,7 +359,6 @@
359359 static const struct i2c_device_id ad5820_id_table[] = {
360360 { "ad5820", 0 },
361361 { "ad5821", 0 },
362
- { "ad5823", 0 },
363362 { }
364363 };
365364 MODULE_DEVICE_TABLE(i2c, ad5820_id_table);
....@@ -367,7 +366,6 @@
367366 static const struct of_device_id ad5820_of_table[] = {
368367 { .compatible = "adi,ad5820" },
369368 { .compatible = "adi,ad5821" },
370
- { .compatible = "adi,ad5823" },
371369 { }
372370 };
373371 MODULE_DEVICE_TABLE(of, ad5820_of_table);