Date:2013-04-25 21:02:09 (7 years 1 month ago)
Author:Lars C.
Commit:daf2feef0e9ea669c9d1f2644573e216de1390ed
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
816816        goto err_cpufreq_unreg;
817817    }
818818
819    ret = jz4740_mmc_request_gpios(mmc, pdev);
820    if (ret)
821        goto err_gpio_bulk_free;
819    if (pdata) {
820        ret = jz4740_mmc_request_gpios(mmc, pdev);
821        if (ret)
822            goto err_gpio_bulk_free;
823    } else {
824        mmc_of_parse(mmc);
825    }
822826
823827    ret = mmc_regulator_get_supply(mmc);
824828    if (ret)
...... 
926930#define JZ4740_MMC_PM_OPS NULL
927931#endif
928932
933static const struct of_device_id jz4740_mmc_of_match[] = {
934    { .compatible = "ingenic,jz4740-msc" },
935    {},
936};
937MODULE_DEVICE_TABLE(of, jz4740_mmc_of_match);
938
929939static struct platform_driver jz4740_mmc_driver = {
930940    .probe = jz4740_mmc_probe,
931941    .remove = jz4740_mmc_remove,
...... 
933943        .name = "jz4740-mmc",
934944        .owner = THIS_MODULE,
935945        .pm = JZ4740_MMC_PM_OPS,
946        .of_match_table = jz4740_mmc_of_match,
936947    },
937948};
938949

Archive Download the corresponding diff file



interactive