]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
remoteproc: sysmon: Update qcom_add_sysmon_subdev() comment
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 21 Mar 2025 14:35:44 +0000 (17:35 +0300)
committerBjorn Andersson <andersson@kernel.org>
Sat, 22 Mar 2025 13:42:39 +0000 (08:42 -0500)
The comment says the qcom_add_sysmon_subdev() returns NULL on error but
it actually returns error pointers.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/77a6b65b-5f3f-4a21-a837-7a4a7e09b099@stanley.mountain
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/remoteproc/qcom_sysmon.c

index c24e4a88287381b3438b56851665c173b8d3e2b6..660ac6fc408213073942f20a2c4e43a0c9b9b37e 100644 (file)
@@ -619,7 +619,7 @@ static irqreturn_t sysmon_shutdown_interrupt(int irq, void *data)
  * @name:      name of this subdev, to use in SSR
  * @ssctl_instance: instance id of the ssctl QMI service
  *
- * Return: A new qcom_sysmon object, or NULL on failure
+ * Return: A new qcom_sysmon object, or an error pointer on failure
  */
 struct qcom_sysmon *qcom_add_sysmon_subdev(struct rproc *rproc,
                                           const char *name,