mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-08 04:42:22 +00:00
4861d78287
* Add: IPU6 Camera Stack
* Fix: Use Mock
* Change: Remove ipu6-camera-hal to move to another PR
(cherry picked from commit 562cf68d3f)
Co-authored-by: Gil <rockgrub@protonmail.com>
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 5c1e910f6c473f7f53377219e1f00b36e6ae7da1 Mon Sep 17 00:00:00 2001
|
|
From: You-Sheng Yang <vicamo.yang@canonical.com>
|
|
Date: Thu, 8 Aug 2024 14:30:51 +0800
|
|
Subject: [PATCH 4/6] media: ipu6: Fix compilation with kernels >= 6.11
|
|
|
|
Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
|
|
---
|
|
drivers/media/pci/intel/ipu-bus.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/media/pci/intel/ipu-bus.c b/drivers/media/pci/intel/ipu-bus.c
|
|
index 0569ccb61..234fde8f1 100644
|
|
--- a/drivers/media/pci/intel/ipu-bus.c
|
|
+++ b/drivers/media/pci/intel/ipu-bus.c
|
|
@@ -75,9 +75,13 @@ static const struct dev_pm_ops ipu_bus_pm_ops = {
|
|
#define IPU_BUS_PM_OPS NULL
|
|
#endif
|
|
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 11, 0)
|
|
static int ipu_bus_match(struct device *dev, struct device_driver *drv)
|
|
+#else
|
|
+static int ipu_bus_match(struct device *dev, const struct device_driver *drv)
|
|
+#endif
|
|
{
|
|
- struct ipu_bus_driver *adrv = to_ipu_bus_driver(drv);
|
|
+ const struct ipu_bus_driver *adrv = to_ipu_bus_driver(drv);
|
|
|
|
dev_dbg(dev, "bus match: \"%s\" --- \"%s\"\n", dev_name(dev),
|
|
adrv->wanted);
|
|
--
|
|
2.47.0
|
|
|