From: chenli Date: Mon, 10 Sep 2012 03:03:37 +0000 (+0800) Subject: move sgx device registration from devices.c to dirver X-Git-Tag: firefly_0821_release~8678 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f5a86f41e27c794eb7537eb005df58285ffe664c;p=firefly-linux-kernel-4.4.55.git move sgx device registration from devices.c to dirver note:must be sync with android! --- diff --git a/arch/arm/mach-rk30/devices.c b/arch/arm/mach-rk30/devices.c index 44b58a8ede04..9594b8bdaf28 100755 --- a/arch/arm/mach-rk30/devices.c +++ b/arch/arm/mach-rk30/devices.c @@ -1067,29 +1067,6 @@ static struct platform_device device_ipp = { .resource = resource_ipp, }; -#if defined(CONFIG_ARCH_RK3066B) -static struct resource resources_sgx[] = { - [0] = { - .name = "gpu_irq", - .start = IRQ_GPU, - .end = IRQ_GPU, - .flags = IORESOURCE_IRQ, - }, - [1] = { - .name = "gpu_base", - .start = RK30_GPU_PHYS , - .end = RK30_GPU_PHYS + RK30_GPU_SIZE - 1, - .flags = IORESOURCE_MEM, - }, -}; -static struct platform_device device_sgx = { - .name = "pvrsrvkm", - .id = 0, - .num_resources = ARRAY_SIZE(resources_sgx), - .resource = resources_sgx, -}; -#endif - #ifdef CONFIG_SND_RK29_SOC_I2S #ifdef CONFIG_SND_RK29_SOC_I2S_8CH static struct resource resource_iis0_8ch[] = { @@ -1358,9 +1335,7 @@ static int __init rk30_init_devices(void) platform_device_register(&device_rga); #endif platform_device_register(&device_ipp); -#if defined(CONFIG_ARCH_RK3066B) - platform_device_register(&device_sgx); -#endif + #ifdef CONFIG_HDMI_RK30 platform_device_register(&device_hdmi); #endif