ARM: OMAP2+: make omap_dma_dev_info __initdata
Subsystems (3)
PATCH 1/1 ARM: OMAP2+: make omap_dma_dev_info __initdata
Make this __initdata as it is only modified only during the initialisation phase in the function omap2_system_dma_init_dev and after this it is not referenced anywhere in the kernel.
Signed-off-by Bhumika Goyal <[email protected]>
--- arch/arm/mach-omap2/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-omap2/dma.c +1 -1
@@ -223,7 +223,7 @@ static unsigned configure_dma_errata(void) .dma_read = dma_read, }; -static struct platform_device_info omap_dma_dev_info = { +static struct platform_device_info omap_dma_dev_info__initdata = { .name ="omap-dma-engine" , .id =-1 , .dma_mask =DMA_BIT_MASK (32 ),
Signature · 1 line
1.9.1
Tony Lindgren
maintainerQuoted 3 lines · Bhumika Goyal
Make this
__initdataas it is only modified only during the initialisation phase in the functionomap2_system_dma_init_devand after this it is not referenced anywhere in the kernel.
Applying into omap-for-v4.15/soc thanks.
Tony