Date:2013-04-25 21:02:09 (9 years 25 days ago)
Author:Lars C.
Commit:fa9af4d38b431591d51f9ef7b080832afdbd906a
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)
...... 
934938#define JZ4740_MMC_PM_OPS NULL
935939#endif
936940
941static const struct of_device_id jz4740_mmc_of_match[] = {
942    { .compatible = "ingenic,jz4740-msc" },
943    {},
944};
945MODULE_DEVICE_TABLE(of, jz4740_mmc_of_match);
946
937947static struct platform_driver jz4740_mmc_driver = {
938948    .probe = jz4740_mmc_probe,
939949    .remove = jz4740_mmc_remove,
...... 
941951        .name = "jz4740-mmc",
942952        .owner = THIS_MODULE,
943953        .pm = JZ4740_MMC_PM_OPS,
954        .of_match_table = jz4740_mmc_of_match,
944955    },
945956};
946957

Archive Download the corresponding diff file



interactive