diff options
author | Rajan Vaja <rajan.vaja@xilinx.com> | 2019-03-05 00:18:08 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2019-03-18 13:45:27 +0100 |
commit | 3d0313786470acb414b7d5fdd2202f061acffb02 (patch) | |
tree | 7e34a492da0da9cab34389dfa8125d2e741085ae /drivers/clk/zynqmp | |
parent | firmware: xilinx: fix debugfs write handler (diff) | |
download | linux-3d0313786470acb414b7d5fdd2202f061acffb02.tar.xz linux-3d0313786470acb414b7d5fdd2202f061acffb02.zip |
drivers: Defer probe if firmware is not ready
Driver needs ZynqMP firmware interface to call EEMI
APIs. In case firmware is not ready, dependent drivers
should wait until the firmware is ready.
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Jolly Shah <jollys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/clk/zynqmp')
-rw-r--r-- | drivers/clk/zynqmp/clkc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/zynqmp/clkc.c b/drivers/clk/zynqmp/clkc.c index b0908ec62f73..2b1d43457f09 100644 --- a/drivers/clk/zynqmp/clkc.c +++ b/drivers/clk/zynqmp/clkc.c @@ -695,8 +695,8 @@ static int zynqmp_clock_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; eemi_ops = zynqmp_pm_get_eemi_ops(); - if (!eemi_ops) - return -ENXIO; + if (IS_ERR(eemi_ops)) + return PTR_ERR(eemi_ops); ret = zynqmp_clk_setup(dev->of_node); |