diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-11-06 22:55:31 +0100 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-11-07 21:02:55 +0100 |
commit | 8e2b36ea6e3abc613cbbdb41692fbd2f9ee18996 (patch) | |
tree | b1d0ea90512b95b4b282081c134f275c11a6d425 /drivers/mmc/host/dw_mmc-pltfm.h | |
parent | mmc: dw_mmc: fix modular build for exynos back-end (diff) | |
download | linux-8e2b36ea6e3abc613cbbdb41692fbd2f9ee18996.tar.xz linux-8e2b36ea6e3abc613cbbdb41692fbd2f9ee18996.zip |
mmc: dw_mmc: constify dw_mci_idmac_ops in exynos back-end
The of_device_id match data is now marked as const and
must not be modified. This changes the dw_mmc to mark
all pointers passing the dw_mci_drv_data or dw_mci_dma_ops
structures as const, and also marks the static definitions
as const.
drivers/mmc/host/dw_mmc-exynos.c: In function 'dw_mci_exynos_probe':
drivers/mmc/host/dw_mmc-exynos.c:234:11: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Thomas Abraham <thomas.abraham@linaro.org>
Cc: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/dw_mmc-pltfm.h')
-rw-r--r-- | drivers/mmc/host/dw_mmc-pltfm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc-pltfm.h b/drivers/mmc/host/dw_mmc-pltfm.h index 301f24541fc2..2ac37b81de4d 100644 --- a/drivers/mmc/host/dw_mmc-pltfm.h +++ b/drivers/mmc/host/dw_mmc-pltfm.h @@ -13,7 +13,7 @@ #define _DW_MMC_PLTFM_H_ extern int dw_mci_pltfm_register(struct platform_device *pdev, - struct dw_mci_drv_data *drv_data); + const struct dw_mci_drv_data *drv_data); extern int __devexit dw_mci_pltfm_remove(struct platform_device *pdev); extern const struct dev_pm_ops dw_mci_pltfm_pmops; |