@@ -169,7 +169,7 @@ struct mxcmci_host {
struct mxcmci_reg_ops *reg_ops;
};
-static struct platform_device_id mxcmci_devtype[] = {
+static const struct platform_device_id mxcmci_devtype[] = {
{
.name = "imx21-mmc",
.driver_data = IMX21_MMC,
@@ -1091,7 +1091,7 @@ static int mxcmci_probe(struct platform_device *pdev)
host->reg_ops = &mxcmci_reg_ops;
if (of_id) {
- struct platform_device_id *id_entry = of_id->data;
+ const struct platform_device_id *id_entry = of_id->data;
host->devtype = id_entry->driver_data;
} else {
host->devtype = pdev->id_entry->driver_data;
Fix: drivers/mmc/host/mxcmmc.c: In function 'mxcmci_probe': drivers/mmc/host/mxcmmc.c:1137:41: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] Signed-off-by: Anatolij Gustschin <agust@denx.de> --- drivers/mmc/host/mxcmmc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)