From fb78243c7c843f6b08b272d0ed42bd16add85bfa Mon Sep 17 00:00:00 2001 From: Show Liu Date: Thu, 2 Jan 2014 11:25:34 +0800 Subject: fixed for compatible with other linux disttribution --- drivers/gpu/arm/t6xx/kbase/src/linux/mali_kbase_core_linux.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/arm/t6xx/kbase/src/linux/mali_kbase_core_linux.c b/drivers/gpu/arm/t6xx/kbase/src/linux/mali_kbase_core_linux.c index ed3da683a87..0bdaefc6220 100755 --- a/drivers/gpu/arm/t6xx/kbase/src/linux/mali_kbase_core_linux.c +++ b/drivers/gpu/arm/t6xx/kbase/src/linux/mali_kbase_core_linux.c @@ -2468,7 +2468,7 @@ static int kbase_platform_device_probe(struct platform_device *pdev) mali_error mali_err; #endif /* CONFIG_MALI_NO_MALI */ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) && CONFIG_CHROMEOS +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) //&& CONFIG_CHROMEOS kbase_platform_config *config; int attribute_count; struct resource resources[PLATFORM_CONFIG_RESOURCE_COUNT]; @@ -2774,7 +2774,7 @@ static const struct dev_pm_ops kbase_pm_ops = { #endif /* CONFIG_PM_RUNTIME */ }; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) && CONFIG_CHROMEOS +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) //&& CONFIG_CHROMEOS static const struct of_device_id mali_of_match[] = { { .compatible = "arm,mali", @@ -2791,7 +2791,7 @@ static struct platform_driver kbase_platform_driver = { .name = kbase_drv_name, .owner = THIS_MODULE, .pm = &kbase_pm_ops, -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) && CONFIG_CHROMEOS +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) //&& CONFIG_CHROMEOS .of_match_table = mali_of_match, #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) && CONFIG_CHROMEOS */ }, @@ -2805,7 +2805,7 @@ static int __init kbase_driver_init(void) { int err; #ifdef CONFIG_MALI_PLATFORM_FAKE -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0)) || !CONFIG_CHROMEOS +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0)) //|| !CONFIG_CHROMEOS kbase_platform_config *config; int attribute_count; struct resource resources[PLATFORM_CONFIG_RESOURCE_COUNT]; -- cgit v1.2.3