hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/i2c/ov5647.c
....@@ -532,7 +532,7 @@
532532
533533 static int ov5647_parse_dt(struct device_node *np)
534534 {
535
- struct v4l2_fwnode_endpoint bus_cfg;
535
+ struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 };
536536 struct device_node *ep;
537537
538538 int ret;
....@@ -547,8 +547,7 @@
547547 return ret;
548548 }
549549
550
-static int ov5647_probe(struct i2c_client *client,
551
- const struct i2c_device_id *id)
550
+static int ov5647_probe(struct i2c_client *client)
552551 {
553552 struct device *dev = &client->dev;
554553 struct ov5647 *sensor;
....@@ -644,7 +643,7 @@
644643 .of_match_table = of_match_ptr(ov5647_of_match),
645644 .name = SENSOR_NAME,
646645 },
647
- .probe = ov5647_probe,
646
+ .probe_new = ov5647_probe,
648647 .remove = ov5647_remove,
649648 .id_table = ov5647_id,
650649 };