26 #include <linux/module.h>
67 static struct sdhci_ops sdhci_dove_ops = {
68 .read_w = sdhci_dove_readw,
69 .read_l = sdhci_dove_readl,
73 .ops = &sdhci_dove_ops,
91 dev_err(&pdev->
dev,
"unable to allocate private data");
96 if (!IS_ERR(priv->
clk))
97 clk_prepare_enable(priv->
clk);
101 goto sdhci_dove_register_fail;
103 host = platform_get_drvdata(pdev);
104 pltfm_host = sdhci_priv(host);
109 sdhci_dove_register_fail:
110 if (!IS_ERR(priv->
clk)) {
111 clk_disable_unprepare(priv->
clk);
119 struct sdhci_host *host = platform_get_drvdata(pdev);
125 if (!IS_ERR(priv->
clk)) {
126 clk_disable_unprepare(priv->
clk);
133 { .compatible =
"marvell,dove-sdhci", },
140 .name =
"sdhci-dove",
143 .of_match_table =
of_match_ptr(sdhci_dove_of_match_table),
145 .probe = sdhci_dove_probe,