diff options
author | Rajan Vaja <rajan.vaja@xilinx.com> | 2019-03-05 02:18:08 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2019-03-18 15:45:27 +0300 |
commit | 3d0313786470acb414b7d5fdd2202f061acffb02 (patch) | |
tree | 7e34a492da0da9cab34389dfa8125d2e741085ae /include/linux | |
parent | b9472f7d8224460499dd7128ec944735ed5345a0 (diff) | |
download | linux-3d0313786470acb414b7d5fdd2202f061acffb02.tar.xz |
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 'include/linux')
-rw-r--r-- | include/linux/firmware/xlnx-zynqmp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 642dab10f65d..3533ee557043 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -293,7 +293,7 @@ const struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void); #else static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void) { - return NULL; + return ERR_PTR(-ENODEV); } #endif |