Skip to content

Commit 1b753ac

Browse files
committed
media: ipu6: Fix compilation with kernels >= 6.11
Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
1 parent 9369b88 commit 1b753ac

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

drivers/media/pci/intel/ipu-bus.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,13 @@ static const struct dev_pm_ops ipu_bus_pm_ops = {
7575
#define IPU_BUS_PM_OPS NULL
7676
#endif
7777

78+
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 11, 0)
7879
static int ipu_bus_match(struct device *dev, struct device_driver *drv)
80+
#else
81+
static int ipu_bus_match(struct device *dev, const struct device_driver *drv)
82+
#endif
7983
{
80-
struct ipu_bus_driver *adrv = to_ipu_bus_driver(drv);
84+
const struct ipu_bus_driver *adrv = to_ipu_bus_driver(drv);
8185

8286
dev_dbg(dev, "bus match: \"%s\" --- \"%s\"\n", dev_name(dev),
8387
adrv->wanted);

0 commit comments

Comments
 (0)