ov8865.c (a1946caf02fcc1fa978de43ceb247c4614d16216) ov8865.c (15786f7b564eff32d8dae73d40d77dc4e3c7298f)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright 2020 Kévin L'hôpital <kevin.lhopital@bootlin.com>
4 * Copyright 2020 Bootlin
5 * Author: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
6 */
7
8#include <linux/clk.h>

--- 2890 unchanged lines hidden (view full) ---

2899
2900 /* Runtime PM */
2901
2902 pm_runtime_enable(sensor->dev);
2903 pm_runtime_set_suspended(sensor->dev);
2904
2905 /* V4L2 subdev register */
2906
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright 2020 Kévin L'hôpital <kevin.lhopital@bootlin.com>
4 * Copyright 2020 Bootlin
5 * Author: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
6 */
7
8#include <linux/clk.h>

--- 2890 unchanged lines hidden (view full) ---

2899
2900 /* Runtime PM */
2901
2902 pm_runtime_enable(sensor->dev);
2903 pm_runtime_set_suspended(sensor->dev);
2904
2905 /* V4L2 subdev register */
2906
2907 ret = v4l2_async_register_subdev_sensor_common(subdev);
2907 ret = v4l2_async_register_subdev_sensor(subdev);
2908 if (ret)
2909 goto error_pm;
2910
2911 return 0;
2912
2913error_pm:
2914 pm_runtime_disable(sensor->dev);
2915

--- 56 unchanged lines hidden ---
2908 if (ret)
2909 goto error_pm;
2910
2911 return 0;
2912
2913error_pm:
2914 pm_runtime_disable(sensor->dev);
2915

--- 56 unchanged lines hidden ---