linux/drivers/remoteproc
Dan Carpenter 7dcef3988e remoteproc: Fix an error code in devm_rproc_alloc()
The comments say that this function should return NULL on error and the
caller expects NULL returns as well so I have modified the code to match.
Returning an ERR_PTR(-ENOMEM) would lead to an OOps.

Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Fixes: 305ac5a766 ("remoteproc: Add device-managed variants of rproc_alloc/rproc_add")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200520120705.GH172354@mwanda
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2020-05-20 12:12:07 -07:00
..
da8xx_remoteproc.c remoteproc: Remove dev_err() usage after platform_get_irq() 2019-08-26 21:59:58 -07:00
imx_rproc.c remoteproc: Use size_t type for len in da_to_va 2020-03-25 22:29:38 -07:00
ingenic_rproc.c remoteproc: ingenic: Added remoteproc driver 2020-05-18 16:54:26 -07:00
Kconfig remoteproc: ingenic: Added remoteproc driver 2020-05-18 16:54:26 -07:00
keystone_remoteproc.c remoteproc: Use size_t type for len in da_to_va 2020-03-25 22:29:38 -07:00
Makefile remoteproc: ingenic: Added remoteproc driver 2020-05-18 16:54:26 -07:00
mtk_common.h rpmsg: add rpmsg support for mt8183 SCP. 2020-01-20 10:29:56 -08:00
mtk_scp_ipi.c rpmsg: add rpmsg support for mt8183 SCP. 2020-01-20 10:29:56 -08:00
mtk_scp.c remoteproc/mediatek: fix invalid use of sizeof in scp_ipi_init() 2020-05-11 11:28:30 -07:00
omap_remoteproc.c remoteproc/omap: Fix set_load call in omap_rproc_request_timer 2020-04-03 10:47:21 -07:00
omap_remoteproc.h remoteproc/omap: Switch to SPDX license identifiers 2020-03-25 22:29:51 -07:00
qcom_common.c soc: qcom: glink_ssr: Internalize ssr_notifiers 2020-05-07 11:04:18 -07:00
qcom_common.h remoteproc: qcom: Pass ssr_name to glink subdevice 2020-05-07 11:03:55 -07:00
qcom_q6v5_adsp.c remoteproc: qcom: Pass ssr_name to glink subdevice 2020-05-07 11:03:55 -07:00
qcom_q6v5_ipa_notify.c remoteproc: add IPA notification to q6v5 driver 2020-03-08 22:07:09 -07:00
qcom_q6v5_mss.c remoteproc: qcom_q6v5_mss: Remove unused q6v5_da_to_va function 2020-05-12 12:08:15 -07:00
qcom_q6v5_pas.c remoteproc: core: Prevent system suspend during remoteproc recovery 2020-05-12 12:11:41 -07:00
qcom_q6v5_wcss.c remoteproc: wcss: Fix arguments passed to qcom_add_glink_subdev() 2020-05-14 12:46:07 -07:00
qcom_q6v5.c remoteproc: qcom: q6v5: Add common panic handler 2020-03-25 22:29:45 -07:00
qcom_q6v5.h remoteproc: qcom: q6v5: Add common panic handler 2020-03-25 22:29:45 -07:00
qcom_sysmon.c remoteproc: sysmon: Inform current rproc about all active rprocs 2020-04-20 00:09:16 -07:00
qcom_wcnss_iris.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
qcom_wcnss.c remoteproc: use rproc_coredump_set_elf_info in drivers 2020-04-19 22:53:37 -07:00
qcom_wcnss.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
remoteproc_core.c remoteproc: Fix an error code in devm_rproc_alloc() 2020-05-20 12:12:07 -07:00
remoteproc_debugfs.c remoteproc: convert to DEFINE_SHOW_ATTRIBUTE 2020-04-16 15:56:17 -07:00
remoteproc_elf_helpers.h remoteproc: Add elf helpers to access elf64 and elf32 fields 2020-03-25 22:29:39 -07:00
remoteproc_elf_loader.c remoteproc: remove rproc_elf32_sanity_check 2020-04-22 21:57:26 -07:00
remoteproc_internal.h remoteproc: Add prepare and unprepare ops 2020-04-22 22:18:06 -07:00
remoteproc_sysfs.c remoteproc: Add a sysfs interface for name 2019-08-26 14:50:16 -07:00
remoteproc_virtio.c remoteproc: Fall back to using parent memory pool if no dedicated available 2020-05-12 16:08:00 -07:00
st_remoteproc.c remoteproc: remove rproc_elf32_sanity_check 2020-04-22 21:57:26 -07:00
st_slim_rproc.c remoteproc: remove rproc_elf32_sanity_check 2020-04-22 21:57:26 -07:00
stm32_rproc.c remoteproc: remove rproc_elf32_sanity_check 2020-04-22 21:57:26 -07:00
wkup_m3_rproc.c remoteproc: Use size_t type for len in da_to_va 2020-03-25 22:29:38 -07:00