fimc-is: Drop code for old kernel versions
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 29 Mar 2018 13:57:30 +0000 (15:57 +0200)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:57:22 +0000 (14:57 +0900)
Change-Id: If303fd1f7546df825b6c9399791d1044ec92630a
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/media/platform/exynos/fimc-is/fimc-is-core.c
drivers/media/platform/exynos/fimc-is/fimc-is-core.h
drivers/media/platform/exynos/fimc-is/fimc-is-video.c
drivers/media/platform/exynos/fimc-is/fimc-is-video.h

index b242f1c..805ff9c 100644 (file)
 #include "fimc-is-device-ois.h"
 #include "fimc-is-device-af.h"
 
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0))
-#define PM_QOS_CAM_THROUGHPUT  PM_QOS_RESERVED
-#endif
-
 struct fimc_is_from_info *sysfs_finfo = NULL;
 struct fimc_is_from_info *sysfs_pinfo = NULL;
 
index 9a74abf..85fe530 100644 (file)
@@ -14,9 +14,7 @@
 
 #include <linux/version.h>
 #include <linux/sched.h>
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0))
 #include <linux/sched/rt.h>
-#endif
 #include <linux/spinlock.h>
 #include <linux/types.h>
 #include <linux/videodev2.h>
index 54ae15c..8b5c790 100644 (file)
@@ -777,9 +777,7 @@ int fimc_is_video_probe(struct fimc_is_video *video,
        video->id               = video_number;
        video->vb2              = mem->vb2;
        video->alloc_dev        = &mem->pdev->dev;
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0))
        video->vd.vfl_dir       = vfl_dir;
-#endif
        video->vd.v4l2_dev      = v4l2_dev;
        video->vd.fops          = fops;
        video->vd.ioctl_ops     = ioctl_ops;
index 68d23ad..f2ac364 100644 (file)
@@ -9,13 +9,6 @@
 #include "fimc-is-framemgr.h"
 #include "fimc-is-config.h"
 
-/* configuration by linux kernel version */
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0))
-#define VFL_DIR_RX             0
-#define VFL_DIR_TX             1
-#define VFL_DIR_M2M            2
-#endif
-
 #define FIMC_IS_MAX_NODES                      (3)
 #define FIMC_IS_INVALID_BUF_INDEX              (0xFF)