OSDN Git Service

media: atomisp: move atomisp_gmin_platform.c to pci/ dir
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 11 May 2020 09:47:25 +0000 (11:47 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 May 2020 12:51:28 +0000 (14:51 +0200)
The atomisp_gmin_platform.c is not a platform driver anymore,
but it is, instead, part of the atomisp driver.

Move it to be together with the driver. As a bonus, as the
atomisp i2c drivers depends on its contents, probing them
should load automatically the atomisp core. This should
likely avoid some possible race conditions.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/Kconfig
drivers/staging/media/atomisp/Makefile
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c [moved from drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c with 100% similarity]
drivers/staging/media/atomisp/platform/Makefile [deleted file]
drivers/staging/media/atomisp/platform/intel-mid/Makefile [deleted file]

index f9507b7..c4f3049 100644 (file)
@@ -31,6 +31,6 @@ config VIDEO_ATOMISP_ISP2401
          Disabling it enables support for Atom ISP2400-based boards
          (Merrifield and Baytrail SoCs).
 
-if INTEL_ATOMISP
+if VIDEO_ATOMISP
 source "drivers/staging/media/atomisp/i2c/Kconfig"
 endif
index c032444..4f09d0c 100644 (file)
@@ -2,7 +2,6 @@
 # Makefile for camera drivers.
 #
 obj-$(CONFIG_INTEL_ATOMISP) += i2c/
-obj-$(CONFIG_INTEL_ATOMISP) += platform/
 obj-$(CONFIG_VIDEO_ATOMISP) += atomisp.o
 
 # While on staging, keep debug enabled
@@ -24,6 +23,7 @@ atomisp-objs += \
        pci/atomisp_subdev.o \
        pci/atomisp_tpg.o \
        pci/atomisp_v4l2.o \
+       pci/atomisp_gmin_platform.o \
        pci/sh_css_firmware.o \
        pci/sh_css_host_data.o \
        pci/sh_css_hrt.o \
diff --git a/drivers/staging/media/atomisp/platform/Makefile b/drivers/staging/media/atomisp/platform/Makefile
deleted file mode 100644 (file)
index 0e3b7e1..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#
-# Makefile for camera drivers.
-#
-
-obj-$(CONFIG_INTEL_ATOMISP) += intel-mid/
diff --git a/drivers/staging/media/atomisp/platform/intel-mid/Makefile b/drivers/staging/media/atomisp/platform/intel-mid/Makefile
deleted file mode 100644 (file)
index c53db13..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#
-# Makefile for intel-mid devices.
-#
-obj-$(CONFIG_INTEL_ATOMISP) += atomisp_gmin_platform.o