forked from saeziae/pkgbuild-linux-starfive-visionfive2
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlinux-07-fix_starfive_v4l2_for_6.6_kernel.patch
72 lines (65 loc) · 2.21 KB
/
linux-07-fix_starfive_v4l2_for_6.6_kernel.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
diff -r d033d387a4e7 drivers/media/platform/starfive/v4l2_driver/ov13850_mipi.c
--- a/drivers/media/platform/starfive/v4l2_driver/ov13850_mipi.c Mon May 20 11:23:00 2024 +0700
+++ b/drivers/media/platform/starfive/v4l2_driver/ov13850_mipi.c Mon May 20 13:08:27 2024 +0700
@@ -1880,7 +1880,7 @@
return ret;
}
-static int ov13850_remove(struct i2c_client *client)
+static void ov13850_remove(struct i2c_client *client)
{
struct v4l2_subdev *sd = i2c_get_clientdata(client);
struct ov13850_dev *sensor = to_ov13850_dev(sd);
@@ -1889,8 +1889,6 @@
media_entity_cleanup(&sensor->sd.entity);
v4l2_ctrl_handler_free(&sensor->ctrls.handler);
mutex_destroy(&sensor->lock);
-
- return 0;
}
static const struct i2c_device_id ov13850_id[] = {
@@ -1911,7 +1909,7 @@
.of_match_table = ov13850_dt_ids,
},
.id_table = ov13850_id,
- .probe_new = ov13850_probe,
+ .probe = ov13850_probe,
.remove = ov13850_remove,
};
diff -r d033d387a4e7 drivers/media/platform/starfive/v4l2_driver/ov5640.c
--- a/drivers/media/platform/starfive/v4l2_driver/ov5640.c Mon May 20 11:23:00 2024 +0700
+++ b/drivers/media/platform/starfive/v4l2_driver/ov5640.c Mon May 20 13:08:27 2024 +0700
@@ -3186,7 +3186,7 @@
return ret;
}
-static int ov5640_remove(struct i2c_client *client)
+static void ov5640_remove(struct i2c_client *client)
{
struct v4l2_subdev *sd = i2c_get_clientdata(client);
struct ov5640_dev *sensor = to_ov5640_dev(sd);
@@ -3195,8 +3195,6 @@
media_entity_cleanup(&sensor->sd.entity);
v4l2_ctrl_handler_free(&sensor->ctrls.handler);
mutex_destroy(&sensor->lock);
-
- return 0;
}
static const struct i2c_device_id ov5640_id[] = {
@@ -3217,7 +3215,7 @@
.of_match_table = ov5640_dt_ids,
},
.id_table = ov5640_id,
- .probe_new = ov5640_probe,
+ .probe = ov5640_probe,
.remove = ov5640_remove,
};
diff -r d033d387a4e7 drivers/media/platform/starfive/v4l2_driver/sc2235.c
--- a/drivers/media/platform/starfive/v4l2_driver/sc2235.c Mon May 20 11:23:00 2024 +0700
+++ b/drivers/media/platform/starfive/v4l2_driver/sc2235.c Mon May 20 13:08:27 2024 +0700
@@ -1904,7 +1904,7 @@
.pm = &sc2235_pm_ops,
},
.id_table = sc2235_id,
- .probe_new = sc2235_probe,
+ .probe = sc2235_probe,
.remove = sc2235_remove,
};