]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
gpu: vithar: remove unused functions
authorMandeep Singh Baines <msb@chromium.org>
Tue, 8 Jan 2013 00:06:09 +0000 (16:06 -0800)
committerChromeBot <chrome-bot@google.com>
Wed, 16 Jan 2013 02:27:32 +0000 (18:27 -0800)
Fixes the following warnings:

drivers/gpu/arm/t6xx/kbase/src/linux/config/tpip/mali_kbase_config_exynos5.c:180:12: warning: 'pm_callback_runtime_power_on' defined but not used [-Wunused-function]
drivers/gpu/arm/t6xx/kbase/src/linux/config/tpip/mali_kbase_config_exynos5.c:193:13: warning: 'pm_callback_runtime_power_off' defined but not used [-Wunused-function]
drivers/gpu/arm/t6xx/kbase/src/linux/config/tpip/mali_kbase_config_exynos5.c:1213:13: warning: 'kbase_platform_runtime_term' defined but not used [-Wunused-function]
drivers/gpu/arm/t6xx/kbase/src/linux/config/tpip/mali_kbase_config_exynos5.c:1222:19: warning: 'kbase_platform_runtime_init' defined but not used [-Wunused-function]

BUG=chromium-os:5542
TEST=compile,run

Change-Id: Ieb911fe7566ab177eee8c03877ba5753a768cb5f
Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/40570
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
drivers/gpu/arm/t6xx/kbase/src/linux/config/tpip/mali_kbase_config_exynos5.c

index bf17c1fc9fc3ad9d4133d95989621c47c80827f7..e32efd92cb7d438d5ab924de3874f135f650d156 100644 (file)
@@ -173,32 +173,6 @@ static void pm_callback_power_off(kbase_device *kbdev)
 #endif /* CONFIG_PM_RUNTIME */
 }
 
-/**
- * Power Management callback - runtime power ON
- */
-#ifdef CONFIG_PM_RUNTIME
-static int pm_callback_runtime_power_on(kbase_device *kbdev)
-{
-#if MALI_RTPM_DEBUG
-       printk("kbase_device_runtime_resume\n");
-#endif /* MALI_RTPM_DEBUG */
-       return kbase_platform_cmu_pmu_control(kbdev, 1);
-}
-#endif /* CONFIG_PM_RUNTIME */
-
-/**
- * Power Management callback - runtime power OFF
- */
-#ifdef CONFIG_PM_RUNTIME
-static void pm_callback_runtime_power_off(kbase_device *kbdev)
-{
-#if MALI_RTPM_DEBUG
-       printk("kbase_device_runtime_suspend\n");
-#endif /* MALI_RTPM_DEBUG */
-       kbase_platform_cmu_pmu_control(kbdev, 0);
-}
-#endif /* CONFIG_PM_RUNTIME */
-
 static kbase_pm_callback_conf pm_callbacks =
 {
        .power_on_callback = pm_callback_power_on,
@@ -1209,25 +1183,6 @@ void kbase_platform_remove_sysfs_file(struct device *dev)
 
 #include "osk/include/mali_osk_lock_order.h"
 
-#ifdef CONFIG_PM_RUNTIME
-static void kbase_platform_runtime_term(struct kbase_device *kbdev)
-{
-       pm_runtime_disable(kbdev->osdev.dev);
-}
-#endif /* CONFIG_PM_RUNTIME */
-
-#ifdef CONFIG_PM_RUNTIME
-extern void pm_runtime_init(struct device *dev);
-
-static mali_error kbase_platform_runtime_init(struct kbase_device *kbdev)
-{
-       pm_runtime_init(kbdev->osdev.dev);
-       pm_suspend_ignore_children(kbdev->osdev.dev, true);
-       pm_runtime_enable(kbdev->osdev.dev);
-       return MALI_ERROR_NONE;
-}
-#endif /* CONFIG_PM_RUNTIME */
-
 mali_error kbase_platform_init(kbase_device *kbdev)
 {
        struct exynos_context *platform;