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:
Hans Verkuil
2021-09-17 09:06:55 +02:00
parent 559fb47bae
commit 76aa174d5f
2 changed files with 23 additions and 0 deletions

View File

@@ -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

View 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 = {