projects/Cuboxi/patches/linux: add patch to fix build if CONFIG_SUSPEND is not set

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-08-10 16:23:20 +02:00
parent c7a004fbb0
commit 86364b9736

View File

@ -0,0 +1,21 @@
diff -Naur linux-cuboxi-a5afa23/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c linux-cuboxi-a5afa23.patch/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
--- linux-cuboxi-a5afa23/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c 2014-08-10 15:00:10.000000000 +0200
+++ linux-cuboxi-a5afa23.patch/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c 2014-08-10 16:03:01.233093741 +0200
@@ -1327,7 +1327,7 @@
};
MODULE_DEVICE_TABLE(of, mxs_gpu_dt_ids);
-#ifdef CONFIG_PM
+#ifdef CONFIG_SUSPEND
static int gpu_runtime_suspend(struct device *dev)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 7)
@@ -1377,7 +1377,7 @@
.name = DEVICE_NAME,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
.of_match_table = mxs_gpu_dt_ids,
-#if CONFIG_PM
+#ifdef CONFIG_SUSPEND
.pm = &gpu_pm_ops,
#endif
#endif