forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/arch/sh/boards/mach-se/7724/setup.c
....@@ -940,15 +940,13 @@
940940 device_initialize(&ms7724se_ceu_devices[0]->dev);
941941 dma_declare_coherent_memory(&ms7724se_ceu_devices[0]->dev,
942942 ceu0_dma_membase, ceu0_dma_membase,
943
- ceu0_dma_membase +
944
- CEU_BUFFER_MEMORY_SIZE - 1);
943
+ CEU_BUFFER_MEMORY_SIZE);
945944 platform_device_add(ms7724se_ceu_devices[0]);
946945
947946 device_initialize(&ms7724se_ceu_devices[1]->dev);
948947 dma_declare_coherent_memory(&ms7724se_ceu_devices[1]->dev,
949948 ceu1_dma_membase, ceu1_dma_membase,
950
- ceu1_dma_membase +
951
- CEU_BUFFER_MEMORY_SIZE - 1);
949
+ CEU_BUFFER_MEMORY_SIZE);
952950 platform_device_add(ms7724se_ceu_devices[1]);
953951
954952 return platform_add_devices(ms7724se_devices,