Date:2013-04-25 21:02:09 (7 years 1 month ago)
Author:Lars C.
Commit:cb70d9ab744f8ccba3117666f6a7453e48ce56da
Message:mmc: jz4740: Add devicetree support

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

Change Details

drivers/mmc/host/jz4740_mmc.c
10571057        goto err_cpufreq_unreg;
10581058    }
10591059
1060    ret = jz4740_mmc_request_gpios(mmc, pdev);
1061    if (ret)
1062        goto err_gpio_bulk_free;
1060    if (pdata) {
1061        ret = jz4740_mmc_request_gpios(mmc, pdev);
1062        if (ret)
1063            goto err_gpio_bulk_free;
1064    } else {
1065        mmc_of_parse(mmc);
1066    }
10631067
10641068    ret = mmc_regulator_get_supply(mmc);
10651069    if (ret)
...... 
11801184#define JZ4740_MMC_PM_OPS NULL
11811185#endif
11821186
1187static const struct of_device_id jz4740_mmc_of_match[] = {
1188    { .compatible = "ingenic,jz4740-msc" },
1189    {},
1190};
1191MODULE_DEVICE_TABLE(of, jz4740_mmc_of_match);
1192
11831193static struct platform_driver jz4740_mmc_driver = {
11841194    .probe = jz4740_mmc_probe,
11851195    .remove = jz4740_mmc_remove,
11861196    .driver = {
11871197        .name = "jz4740-mmc",
11881198        .pm = JZ4740_MMC_PM_OPS,
1199        .of_match_table = jz4740_mmc_of_match,
11891200    },
11901201};
11911202

Archive Download the corresponding diff file



interactive