aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2021-02-09 15:28:15 +0100
committerMichal Simek <michal.simek@xilinx.com>2021-02-23 14:56:59 +0100
commit9b7aac75365b68bae2e8f7cf074ba95638d31882 (patch)
tree9d2ee4b001275fe6a2191ead6ec3913e033a783d /drivers/mmc
parent3aba25bc382beeb8a92b46d23fd1db47dfcb1121 (diff)
downloadu-boot-9b7aac75365b68bae2e8f7cf074ba95638d31882.zip
u-boot-9b7aac75365b68bae2e8f7cf074ba95638d31882.tar.gz
u-boot-9b7aac75365b68bae2e8f7cf074ba95638d31882.tar.bz2
clk: zynq: Add dummy clock enable function
A lot of Xilinx drivers are checking -ENOSYS which means that clock driver doesn't have enable function. Remove this checking from drivers and create dummy enable function as was done for clk_fixed_rate driver by commit 6bf6d81c1112 ("clk: fixed_rate: add dummy enable() function"). Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/zynq_sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c
index d9ad0ff..b79c402 100644
--- a/drivers/mmc/zynq_sdhci.c
+++ b/drivers/mmc/zynq_sdhci.c
@@ -577,7 +577,7 @@ static int arasan_sdhci_probe(struct udevice *dev)
debug("%s: CLK %ld\n", __func__, clock);
ret = clk_enable(&clk);
- if (ret && ret != -ENOSYS) {
+ if (ret) {
dev_err(dev, "failed to enable clock\n");
return ret;
}