Date:2013-04-25 21:02:09 (7 years 2 months ago)
Author:Lars C.
Commit:5ce73c6d30ef218ad3b829f9385a37565018003b
Message:mmc: jz4740: Add devicetree support

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Files: drivers/mmc/host/jz4740_mmc.c (3 diffs)

Change Details

drivers/mmc/host/jz4740_mmc.c
824824        goto err_cpufreq_unreg;
825825    }
826826
827    ret = jz4740_mmc_request_gpios(mmc, pdev);
828    if (ret)
829        goto err_gpio_bulk_free;
827    if (pdata) {
828        ret = jz4740_mmc_request_gpios(mmc, pdev);
829        if (ret)
830            goto err_gpio_bulk_free;
831    } else {
832        mmc_of_parse(mmc);
833    }
830834
831835    ret = mmc_regulator_get_supply(mmc);
832836    if (ret)
...... 
938942#define JZ4740_MMC_PM_OPS NULL
939943#endif
940944
945static const struct of_device_id jz4740_mmc_of_match[] = {
946    { .compatible = "ingenic,jz4740-msc" },
947    {},
948};
949MODULE_DEVICE_TABLE(of, jz4740_mmc_of_match);
950
941951static struct platform_driver jz4740_mmc_driver = {
942952    .probe = jz4740_mmc_probe,
943953    .remove = jz4740_mmc_remove,
...... 
945955        .name = "jz4740-mmc",
946956        .owner = THIS_MODULE,
947957        .pm = JZ4740_MMC_PM_OPS,
958        .of_match_table = jz4740_mmc_of_match,
948959    },
949960};
950961

Archive Download the corresponding diff file



interactive