diff options
author | Krzysztof Kozlowski <k.kozlowski.k@gmail.com> | 2015-05-02 00:57:46 +0900 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-05-04 16:38:55 +0530 |
commit | afe7cded998fff62759c214cda8785cd874b6114 (patch) | |
tree | a5a0ba34856885a7c02c456f7a748758e03f0790 /drivers/dma | |
parent | 577d2e0629c289485e1929df492ecdb613f930c2 (diff) | |
download | op-kernel-dev-afe7cded998fff62759c214cda8785cd874b6114.zip op-kernel-dev-afe7cded998fff62759c214cda8785cd874b6114.tar.gz |
dmaengine: imx: Constify platform_device_id
The platform_device_id is not modified by the driver and core uses it as
const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/imx-dma.c | 2 | ||||
-rw-r--r-- | drivers/dma/imx-sdma.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index eed4059..865501fc 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c @@ -193,7 +193,7 @@ struct imxdma_filter_data { int request; }; -static struct platform_device_id imx_dma_devtype[] = { +static const struct platform_device_id imx_dma_devtype[] = { { .name = "imx1-dma", .driver_data = IMX1_DMA, diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 62bbd79..77b6aab 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -420,7 +420,7 @@ static struct sdma_driver_data sdma_imx6q = { .script_addrs = &sdma_script_imx6q, }; -static struct platform_device_id sdma_devtypes[] = { +static const struct platform_device_id sdma_devtypes[] = { { .name = "imx25-sdma", .driver_data = (unsigned long)&sdma_imx25, |