ARM: EXYNOS: removing exynos-drm device registration from non-dt platforms
authorRahul Sharma <rahul.sharma@samsung.com>
Mon, 29 Oct 2012 12:51:55 +0000 (21:51 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Mon, 29 Oct 2012 12:51:55 +0000 (21:51 +0900)
As exynos-drm is a software device, its registration is moved to the
exynos drm driver. This will provide generic solution for device registration
for dt and non-dt platforms. Corresponding patches are posted to dri-devel
list.

Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/Makefile
arch/arm/mach-exynos/dev-drm.c [deleted file]
arch/arm/mach-exynos/mach-nuri.c
arch/arm/mach-exynos/mach-origen.c
arch/arm/mach-exynos/mach-smdk4x12.c
arch/arm/mach-exynos/mach-smdkv310.c
arch/arm/mach-exynos/mach-universal_c210.c
arch/arm/plat-samsung/include/plat/devs.h

index 9b58024f7d43919fcc1c2c07ed6732d39bcd128d..1797dee88a0d0f49cfe72e5f7af2bd3724e93b4d 100644 (file)
@@ -53,7 +53,6 @@ obj-$(CONFIG_EXYNOS4_DEV_AHCI)                += dev-ahci.o
 obj-$(CONFIG_EXYNOS4_DEV_DWMCI)                += dev-dwmci.o
 obj-$(CONFIG_EXYNOS_DEV_DMA)           += dma.o
 obj-$(CONFIG_EXYNOS4_DEV_USB_OHCI)     += dev-ohci.o
-obj-$(CONFIG_EXYNOS_DEV_DRM)           += dev-drm.o
 obj-$(CONFIG_EXYNOS_DEV_SYSMMU)                += dev-sysmmu.o
 
 obj-$(CONFIG_ARCH_EXYNOS)              += setup-i2c0.o
diff --git a/arch/arm/mach-exynos/dev-drm.c b/arch/arm/mach-exynos/dev-drm.c
deleted file mode 100644 (file)
index 17c9c6e..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * linux/arch/arm/mach-exynos/dev-drm.c
- *
- * Copyright (c) 2012 Samsung Electronics Co., Ltd.
- *             http://www.samsung.com
- *
- * EXYNOS - core DRM device
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- */
-
-#include <linux/kernel.h>
-#include <linux/dma-mapping.h>
-#include <linux/platform_device.h>
-
-#include <plat/devs.h>
-
-static u64 exynos_drm_dma_mask = DMA_BIT_MASK(32);
-
-struct platform_device exynos_device_drm = {
-       .name   = "exynos-drm",
-       .dev    = {
-               .dma_mask               = &exynos_drm_dma_mask,
-               .coherent_dma_mask      = DMA_BIT_MASK(32),
-       }
-};
index c05d7aa84031b70a601598fd0a5542dfbf3056f3..94970602df616bc8adfd352d368cbcff49035312 100644 (file)
@@ -1327,9 +1327,6 @@ static struct platform_device *nuri_devices[] __initdata = {
        &cam_vdda_fixed_rdev,
        &cam_8m_12v_fixed_rdev,
        &exynos4_bus_devfreq,
-#ifdef CONFIG_DRM_EXYNOS
-       &exynos_device_drm,
-#endif
 };
 
 static void __init nuri_map_io(void)
index 9adf491674ea18f350039da0dfbd20e6c825d690..d8dc6d7f0c00dada0ef669f698e397e5b8a7c17e 100644 (file)
@@ -709,9 +709,6 @@ static struct platform_device *origen_devices[] __initdata = {
        &s5p_device_mfc_l,
        &s5p_device_mfc_r,
        &s5p_device_mixer,
-#ifdef CONFIG_DRM_EXYNOS
-       &exynos_device_drm,
-#endif
        &exynos4_device_ohci,
        &origen_device_gpiokeys,
        &origen_lcd_hv070wsa,
index 730f1ac65928ed832a52fdb2cf0e8b80f2ae4d60..17b9ca48722ed655a6a4f111b6d6b2854ed5cc0e 100644 (file)
@@ -317,9 +317,6 @@ static struct platform_device *smdk4x12_devices[] __initdata = {
        &s5p_device_mfc,
        &s5p_device_mfc_l,
        &s5p_device_mfc_r,
-#ifdef CONFIG_DRM_EXYNOS
-       &exynos_device_drm,
-#endif
        &samsung_device_keypad,
 };
 
index ee4fb1a9cb7207b226fdffc24f4e4016fafc7618..4f0ac5397ba3f2015975f0f1c691af3bf5e1b630 100644 (file)
@@ -300,9 +300,6 @@ static struct platform_device *smdkv310_devices[] __initdata = {
        &s5p_device_fimc_md,
        &s5p_device_g2d,
        &s5p_device_jpeg,
-#ifdef CONFIG_DRM_EXYNOS
-       &exynos_device_drm,
-#endif
        &exynos4_device_ac97,
        &exynos4_device_i2s0,
        &exynos4_device_ohci,
index ebc9dd339a3899ae6170a24a0ddf2c1e44b1281d..cfdf876a86260d36ca6aa24ca6793231089f8e03 100644 (file)
@@ -1081,9 +1081,6 @@ static struct platform_device *universal_devices[] __initdata = {
        &s5p_device_onenand,
        &s5p_device_fimd0,
        &s5p_device_jpeg,
-#ifdef CONFIG_DRM_EXYNOS
-       &exynos_device_drm,
-#endif
        &s3c_device_usb_hsotg,
        &s5p_device_mfc,
        &s5p_device_mfc_l,
index 5da4b4f38f40ebb41c076fbe74bd205aefefdacf..133e3e4170fb04af522bd70f0120eaf3ff3978d8 100644 (file)
@@ -133,8 +133,6 @@ extern struct platform_device exynos4_device_pcm1;
 extern struct platform_device exynos4_device_pcm2;
 extern struct platform_device exynos4_device_spdif;
 
-extern struct platform_device exynos_device_drm;
-
 extern struct platform_device samsung_asoc_dma;
 extern struct platform_device samsung_asoc_idma;
 extern struct platform_device samsung_device_keypad;