Преглед на файлове

ARM: SAMSUNG: make local dev-backlight in mach-s3c64xx

This patch moves dev-backlight from plat-samsung into mach-s3c64xx
because it is used for only s3c64xx no other platforms.

Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
Kukjin Kim преди 10 години
родител
ревизия
7f798c1c0d
променени са 5 файла, в които са добавени 9 реда и са изтрити 10 реда
  1. 6 0
      arch/arm/mach-s3c64xx/Kconfig
  2. 2 0
      arch/arm/mach-s3c64xx/Makefile
  3. 1 2
      arch/arm/mach-s3c64xx/dev-backlight.c
  4. 0 6
      arch/arm/plat-samsung/Kconfig
  5. 0 2
      arch/arm/plat-samsung/Makefile

+ 6 - 0
arch/arm/mach-s3c64xx/Kconfig

@@ -34,6 +34,12 @@ config S3C64XX_DEV_ONENAND1
 	help
 	  Compile in platform device definition for OneNAND1 controller
 
+config SAMSUNG_DEV_BACKLIGHT
+	bool
+	depends on SAMSUNG_DEV_PWM
+	help
+	  Compile in platform device definition LCD backlight with PWM Timer
+
 # platform specific device setup
 
 config S3C64XX_SETUP_I2C0

+ 2 - 0
arch/arm/mach-s3c64xx/Makefile

@@ -40,6 +40,8 @@ obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO)	+= setup-sdhci-gpio.o
 obj-$(CONFIG_S3C64XX_SETUP_SPI)		+= setup-spi.o
 obj-$(CONFIG_S3C64XX_SETUP_USB_PHY) += setup-usb-phy.o
 
+obj-$(CONFIG_SAMSUNG_DEV_BACKLIGHT)	+= dev-backlight.o
+
 # Machine support
 
 obj-$(CONFIG_MACH_ANW6410)		+= mach-anw6410.o

+ 1 - 2
arch/arm/plat-samsung/dev-backlight.c → arch/arm/mach-s3c64xx/dev-backlight.c

@@ -1,5 +1,4 @@
-/* linux/arch/arm/plat-samsung/dev-backlight.c
- *
+/*
  * Copyright (c) 2011 Samsung Electronics Co., Ltd.
  *              http://www.samsung.com
  *

+ 0 - 6
arch/arm/plat-samsung/Kconfig

@@ -217,12 +217,6 @@ config SAMSUNG_DEV_PWM
 	help
 	  Compile in platform device definition for PWM Timer
 
-config SAMSUNG_DEV_BACKLIGHT
-	bool
-	depends on SAMSUNG_DEV_PWM
-	help
-	  Compile in platform device definition LCD backlight with PWM Timer
-
 config S3C24XX_PWM
 	bool "PWM device support"
 	select PWM

+ 0 - 2
arch/arm/plat-samsung/Makefile

@@ -22,8 +22,6 @@ obj-$(CONFIG_SAMSUNG_ATAGS)	+= devs.o
 obj-$(CONFIG_SAMSUNG_ATAGS)	+= dev-uart.o
 obj-$(CONFIG_S5P_DEV_MFC)	+= s5p-dev-mfc.o
 
-obj-$(CONFIG_SAMSUNG_DEV_BACKLIGHT)	+= dev-backlight.o
-
 # PM support
 
 obj-$(CONFIG_PM_SLEEP)		+= pm-common.o