diff options
author | Michal Simek <michal.simek@xilinx.com> | 2021-02-09 17:28:15 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2021-02-23 16:56:59 +0300 |
commit | 9b7aac75365b68bae2e8f7cf074ba95638d31882 (patch) | |
tree | 9d2ee4b001275fe6a2191ead6ec3913e033a783d /drivers/spi/zynq_qspi.c | |
parent | 3aba25bc382beeb8a92b46d23fd1db47dfcb1121 (diff) | |
download | u-boot-9b7aac75365b68bae2e8f7cf074ba95638d31882.tar.xz |
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/spi/zynq_qspi.c')
-rw-r--r-- | drivers/spi/zynq_qspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c index 845f2d2f5f..29dbbf5557 100644 --- a/drivers/spi/zynq_qspi.c +++ b/drivers/spi/zynq_qspi.c @@ -193,7 +193,7 @@ static int zynq_qspi_probe(struct udevice *bus) } ret = clk_enable(&clk); - if (ret && ret != -ENOSYS) { + if (ret) { dev_err(bus, "failed to enable clock\n"); return ret; } |