mirror of
https://github.com/tbsdtv/media_build.git
synced 2025-07-23 04:13:02 +02:00
Add backports/v5.14_bus_void_return.patch
Fixes a bus callback return type. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
@@ -28,6 +28,9 @@ add drx39xxj.patch
|
||||
add ccs.patch
|
||||
add rc-cec.patch
|
||||
|
||||
[5.14.1023]
|
||||
add v5.14_bus_void_return.patch
|
||||
|
||||
[5.12.1023]
|
||||
add v5.12_uvc.patch
|
||||
|
||||
|
20
backports/v5.14_bus_void_return.patch
Normal file
20
backports/v5.14_bus_void_return.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
diff --git a/drivers/media/pci/bt8xx/bttv-gpio.c b/drivers/media/pci/bt8xx/bttv-gpio.c
|
||||
index a2b18e2bed1b..b730225ca887 100644
|
||||
--- a/drivers/media/pci/bt8xx/bttv-gpio.c
|
||||
+++ b/drivers/media/pci/bt8xx/bttv-gpio.c
|
||||
@@ -46,13 +46,14 @@ static int bttv_sub_probe(struct device *dev)
|
||||
return sub->probe ? sub->probe(sdev) : -ENODEV;
|
||||
}
|
||||
|
||||
-static void bttv_sub_remove(struct device *dev)
|
||||
+static int bttv_sub_remove(struct device *dev)
|
||||
{
|
||||
struct bttv_sub_device *sdev = to_bttv_sub_dev(dev);
|
||||
struct bttv_sub_driver *sub = to_bttv_sub_drv(dev->driver);
|
||||
|
||||
if (sub->remove)
|
||||
sub->remove(sdev);
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
struct bus_type bttv_sub_bus_type = {
|
Reference in New Issue
Block a user