media: i2c/imx415: Minor fix for compatibility with old kernels.

This commit is contained in:
CrazyCat
2024-05-10 21:49:57 +03:00
parent d8d1ff33c0
commit 4b9d3dad3f

View File

@@ -1272,8 +1272,9 @@ static int imx415_runtime_suspend(struct device *dev)
return 0;
}
static DEFINE_RUNTIME_DEV_PM_OPS(imx415_pm_ops, imx415_runtime_suspend,
imx415_runtime_resume, NULL);
static const struct dev_pm_ops imx415_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(imx415_runtime_suspend, imx415_runtime_resume)
};
static const struct of_device_id imx415_of_match[] = {
{ .compatible = "sony,imx415" },