]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/mmc/mxcmmc.c
mmc: Remove ops from struct mmc and put in mmc_ops
[people/ms/u-boot.git] / drivers / mmc / mxcmmc.c
index 4f99617b9a948da3c9b4f66c5a765fa3904dfb43..f3e1eed737eb3647641e32477ed99a55a55c1cd6 100644 (file)
@@ -485,6 +485,12 @@ static int mxcmci_init(struct mmc *mmc)
        return 0;
 }
 
+static const struct mmc_ops mxcmci_ops = {
+       .send_cmd       = mxcmci_request,
+       .set_ios        = mxcmci_set_ios,
+       .init           = mxcmci_init,
+};
+
 static int mxcmci_initialize(bd_t *bis)
 {
        struct mmc *mmc = NULL;
@@ -495,11 +501,7 @@ static int mxcmci_initialize(bd_t *bis)
                return -ENOMEM;
 
        sprintf(mmc->name, "MXC MCI");
-       mmc->send_cmd = mxcmci_request;
-       mmc->set_ios = mxcmci_set_ios;
-       mmc->init = mxcmci_init;
-       mmc->getcd = NULL;
-       mmc->getwp = NULL;
+       mmc->ops = &mxcmci_ops;
        mmc->host_caps = MMC_MODE_4BIT;
 
        host->base = (struct mxcmci_regs *)CONFIG_MXC_MCI_REGS_BASE;