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/serial/serial_zynq.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/serial/serial_zynq.c')
-rw-r--r-- | drivers/serial/serial_zynq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index 2883e2466f..799d524047 100644 --- a/drivers/serial/serial_zynq.c +++ b/drivers/serial/serial_zynq.c @@ -127,7 +127,7 @@ static int zynq_serial_setbrg(struct udevice *dev, int baudrate) 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; } |