]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dmaengine: at_hdmac: add a few const qualifiers
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 21 May 2012 19:57:39 +0000 (21:57 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 24 Jul 2012 06:41:34 +0000 (08:41 +0200)
This prepares *of_device_id.data becoming const. Without this change
the following warning would occur:

drivers/dma/at_hdmac.c: In function 'at_dma_get_driver_data':
drivers/dma/at_hdmac.c:1228: warning: return discards qualifiers from pointer target type

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/dma/at_hdmac.c

index 7292aa87b2dd3fb54a4797f7c676d74a6a047713..7e9d2654b8379316d89094e345d36d1adfa586d6 100644 (file)
@@ -1217,7 +1217,7 @@ static const struct platform_device_id atdma_devtypes[] = {
        }
 };
 
-static inline struct at_dma_platform_data * __init at_dma_get_driver_data(
+static inline const struct at_dma_platform_data * __init at_dma_get_driver_data(
                                                struct platform_device *pdev)
 {
        if (pdev->dev.of_node) {
@@ -1255,7 +1255,7 @@ static int __init at_dma_probe(struct platform_device *pdev)
        int                     irq;
        int                     err;
        int                     i;
-       struct at_dma_platform_data *plat_dat;
+       const struct at_dma_platform_data *plat_dat;
 
        /* setup platform data for each SoC */
        dma_cap_set(DMA_MEMCPY, at91sam9rl_config.cap_mask);