]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
compile with fewer CONFIG_ symbols
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 25 Feb 2013 18:10:13 +0000 (18:10 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 25 Feb 2013 18:54:07 +0000 (18:54 +0000)
arch/arm/mach-exynos/include/mach/sysmmu.h
drivers/gpu/drm/exynos/exynos_drm_drv.c

index d42589d3ae1433af27167c32e434a5acffbb471b..395199da2a0c97e1f022819d1f02ffbe5328067d 100644 (file)
@@ -28,7 +28,11 @@ struct sysmmu_platform_data {
 static inline void platform_set_sysmmu(
                struct device *sysmmu, struct device *dev)
 {
+#ifndef CONFIG_EXYNOS_IOMMU
+       printk("DEBUG %s %d, %d %d\n", __func__, __LINE__, sysmmu->id, dev->id);
+#else
        dev->archdata.iommu = sysmmu;
+#endif
 }
 
 #ifdef CONFIG_EXYNOS_IOMMU
index b326f66cb2dea6accdc6e39387d5d347b008a793..1049da4eefb9a3cba5c0617e8a49f96651e9973b 100644 (file)
@@ -30,6 +30,7 @@
 #include "drm_crtc_helper.h"
 
 #include <drm/exynos_drm.h>
+#include <linux/pm_runtime.h>
 
 #include "exynos_drm_drv.h"
 #include "exynos_drm_crtc.h"
@@ -350,7 +351,9 @@ static int exynos_drm_platform_probe(struct platform_device *pdev)
 
        exynos_drm_driver.num_ioctls = DRM_ARRAY_SIZE(exynos_ioctls);
 
-       pm_vt_switch_required(dev, false);
+#ifdef CONFIG_VT_CONSOLE_SLEEP
+        pm_vt_switch_required(dev, false);
+#endif
        pm_runtime_enable(dev);
        pm_runtime_get_sync(dev);
 
@@ -369,7 +372,9 @@ static int __devexit exynos_drm_platform_remove(struct platform_device *pdev)
 
        DRM_DEBUG_DRIVER("%s\n", __FILE__);
 
-       pm_vt_switch_unregister(dev);
+#ifdef CONFIG_VT_CONSOLE_SLEEP
+        pm_vt_switch_unregister(dev);
+#endif
        pm_runtime_disable(dev);
 
        drm_platform_exit(&exynos_drm_driver, pdev);
@@ -615,7 +620,9 @@ out_mixer:
 out_hdmi:
 #endif
 
+#ifdef CONFIG_DRM_EXYNOS_DP
        platform_driver_unregister(&dp_driver);
+#endif
 out_dp_driver:
 #ifdef CONFIG_DRM_EXYNOS_FIMD
        platform_driver_unregister(&fimd_driver);
@@ -649,7 +656,9 @@ static void __exit exynos_drm_exit(void)
        platform_driver_unregister(&vidi_driver);
 #endif
 
+#ifdef CONFIG_DRM_EXYNOS_DP
        platform_driver_unregister(&dp_driver);
+#endif
 #ifdef CONFIG_DRM_EXYNOS_FIMD
        platform_driver_unregister(&fimd_driver);
 #endif