]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/blobdiff - arch/sh/kernel/cpu/sh4a/setup-sh7786.c
SH: constify multiple DMA related objects and references to them
[lisovros/linux_canprio.git] / arch / sh / kernel / cpu / sh4a / setup-sh7786.c
index d7336036d04d33b012afcf82740d8fd321dabc98..81657091da4636774bfd7f5b06e482e9150b31d9 100644 (file)
@@ -445,7 +445,7 @@ static struct platform_device tmu11_device = {
        .num_resources  = ARRAY_SIZE(tmu11_resources),
 };
 
-static struct sh_dmae_channel dmac0_channels[] = {
+static const struct sh_dmae_channel dmac0_channels[] = {
        {
                .offset = 0,
                .dmars = 0,
@@ -473,7 +473,7 @@ static struct sh_dmae_channel dmac0_channels[] = {
        }
 };
 
-static unsigned int ts_shift[] = TS_SHIFT;
+static const unsigned int ts_shift[] = TS_SHIFT;
 
 static struct sh_dmae_pdata dma0_platform_data = {
        .channel        = dmac0_channels,