We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c4fe4f commit c5a66ddCopy full SHA for c5a66dd
drivers/mmc/host/meson-gx-mmc.c
@@ -150,7 +150,7 @@ struct sd_emmc_desc {
150
151
struct meson_host {
152
struct device *dev;
153
- struct meson_mmc_data *data;
+ const struct meson_mmc_data *data;
154
struct mmc_host *mmc;
155
struct mmc_command *cmd;
156
@@ -1195,8 +1195,7 @@ static int meson_mmc_probe(struct platform_device *pdev)
1195
if (mmc->caps & MMC_CAP_SDIO_IRQ)
1196
mmc->caps2 |= MMC_CAP2_SDIO_IRQ_NOTHREAD;
1197
1198
- host->data = (struct meson_mmc_data *)
1199
- of_device_get_match_data(&pdev->dev);
+ host->data = of_device_get_match_data(&pdev->dev);
1200
if (!host->data)
1201
return -EINVAL;
1202
0 commit comments