diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-23 19:27:31 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-08-28 18:41:08 +0300 |
commit | b753351ec8f4c6a25c6d9b5c4eccce62e448a571 (patch) | |
tree | 495a1c28c4a3b538d0851858a99511cd7d0b3daf /drivers/dma/pl330.c | |
parent | b80fa1217c3c2ad634e3d92ae8bfc6d442ffaeae (diff) | |
download | linux-b753351ec8f4c6a25c6d9b5c4eccce62e448a571.tar.xz |
dmaengine: pl330: constify amba_id
amba_id are not supposed to change at runtime. All functions
working with const amba_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/pl330.c')
-rw-r--r-- | drivers/dma/pl330.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index b19ee04567b5..f122c2a7b9f0 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -3023,7 +3023,7 @@ static int pl330_remove(struct amba_device *adev) return 0; } -static struct amba_id pl330_ids[] = { +static const struct amba_id pl330_ids[] = { { .id = 0x00041330, .mask = 0x000fffff, |