diff options
| author | Rajan Vaja <[email protected]> | 2019-03-04 15:18:08 -0800 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2019-03-18 13:45:27 +0100 |
| commit | 3d0313786470acb414b7d5fdd2202f061acffb02 (patch) | |
| tree | 7e34a492da0da9cab34389dfa8125d2e741085ae /include/linux | |
| parent | b9472f7d8224460499dd7128ec944735ed5345a0 (diff) | |
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 <[email protected]>
Signed-off-by: Jolly Shah <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
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 |