From: Evgeny Voevodin Date: Thu, 26 Jul 2012 12:01:01 +0000 (+0400) Subject: arch/arm/mach-exynos/mach-tizen.c: Drop instantiation of virtio resources. X-Git-Tag: 2.2.1_release^2~83^2~7^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15c58cded2a93fff64f18e4be18cc80262b8eff5;p=sdk%2Femulator%2Femulator-kernel.git arch/arm/mach-exynos/mach-tizen.c: Drop instantiation of virtio resources. We now use devices parameter parsing to find out where virtio-mmio devices are. tizen_defconfig changed to select CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y. Signed-off-by: Evgeny Voevodin --- diff --git a/arch/arm/configs/tizen_defconfig b/arch/arm/configs/tizen_defconfig index 54223027fb03..014bcfe20e68 100644 --- a/arch/arm/configs/tizen_defconfig +++ b/arch/arm/configs/tizen_defconfig @@ -2321,6 +2321,7 @@ CONFIG_VIRTIO_RING=y # CONFIG_VIRTIO_PCI is not set # CONFIG_VIRTIO_BALLOON is not set CONFIG_VIRTIO_MMIO=y +CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y # # Microsoft Hyper-V guest support diff --git a/arch/arm/mach-exynos/mach-tizen.c b/arch/arm/mach-exynos/mach-tizen.c index abe5f81458ed..cb2a252c5ca7 100644 --- a/arch/arm/mach-exynos/mach-tizen.c +++ b/arch/arm/mach-exynos/mach-tizen.c @@ -219,7 +219,7 @@ struct platform_device tizen_fgles_device = { .resource = tizen_fgles_resources, .num_resources = ARRAY_SIZE(tizen_fgles_resources), }; -#endif /* CONFIG_VIRTIO_BLK */ +#endif /* CONFIG_TIZEN_FGLES */ static void tizen_lcd_power_on(struct plat_lcd_data *pd, unsigned int power) { @@ -1201,36 +1201,6 @@ static struct platform_device exynos4_bus_devfreq = { .name = "exynos4210-busfreq", }; -#ifdef CONFIG_VIRTIO_MMIO -#ifdef CONFIG_VIRTIO_BLK -static struct resource tizen_virtio_mmio_blk_resources[] = { - [0] = DEFINE_RES_MEM(0x10AD0000, SZ_4K), - [1] = DEFINE_RES_IRQ(IRQ_EINT(7)), -}; - -struct platform_device tizen_virtio_mmio_blk_device = { - .name = "virtio-mmio", - .id = 0, - .resource = tizen_virtio_mmio_blk_resources, - .num_resources = ARRAY_SIZE(tizen_virtio_mmio_blk_resources), -}; -#endif /* CONFIG_VIRTIO_BLK */ - -#ifdef CONFIG_VIRTIO_NET -static struct resource tizen_virtio_mmio_net_resources[] = { - [0] = DEFINE_RES_MEM(0x10AC0000, SZ_4K), - [1] = DEFINE_RES_IRQ(IRQ_EINT(6)), -}; - -struct platform_device tizen_virtio_mmio_net_device = { - .name = "virtio-mmio", - .id = -1, - .resource = tizen_virtio_mmio_net_resources, - .num_resources = ARRAY_SIZE(tizen_virtio_mmio_net_resources), -}; -#endif /* CONFIG_VIRTIO_NET */ -#endif /* CONFIG_VIRTIO_MMIO */ - static struct platform_device *tizen_devices[] __initdata = { /* Samsung Platform Devices */ &s5p_device_mipi_csis0, @@ -1244,15 +1214,6 @@ static struct platform_device *tizen_devices[] __initdata = { &s5p_device_mfc_l, &s5p_device_mfc_r, -#ifdef CONFIG_VIRTIO_MMIO -#ifdef CONFIG_VIRTIO_BLK - &tizen_virtio_mmio_blk_device, -#endif /* CONFIG_VIRTIO_BLK */ -#ifdef CONFIG_VIRTIO_NET - &tizen_virtio_mmio_net_device, -#endif /* CONFIG_VIRTIO_NET */ -#endif /* CONFIG_VIRTIO_MMIO */ - /* Tizen Devices */ &tizen_lcd_device, &tizen_backlight_device,