summaryrefslogtreecommitdiffstats
path: root/include/linux/firmware/xlnx-zynqmp.h
diff options
context:
space:
mode:
authorRajan Vaja <rajan.vaja@xilinx.com>2019-03-04 15:18:08 -0800
committerMichal Simek <michal.simek@xilinx.com>2019-03-18 13:45:27 +0100
commit3d0313786470acb414b7d5fdd2202f061acffb02 (patch)
tree7e34a492da0da9cab34389dfa8125d2e741085ae /include/linux/firmware/xlnx-zynqmp.h
parentb9472f7d8224460499dd7128ec944735ed5345a0 (diff)
downloadlinux-3d0313786470acb414b7d5fdd2202f061acffb02.tar.gz
linux-3d0313786470acb414b7d5fdd2202f061acffb02.tar.bz2
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 'include/linux/firmware/xlnx-zynqmp.h')
-rw-r--r--include/linux/firmware/xlnx-zynqmp.h2
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