All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] remoteproc: pru: Use rproc_of_parse_firmware() to get firmware name
@ 2026-03-02 20:27 Andrew Davis
  2026-03-02 20:27 ` [PATCH 2/2] remoteproc: pru: Remove empty remove callback Andrew Davis
  2026-03-06 17:35 ` [PATCH 1/2] remoteproc: pru: Use rproc_of_parse_firmware() to get firmware name Mathieu Poirier
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew Davis @ 2026-03-02 20:27 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier
  Cc: linux-remoteproc, linux-kernel, Andrew Davis

There is a helper function to get the firmware name, make use of that.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 drivers/remoteproc/pru_rproc.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c
index 5e3eb7b86a0e3..19b107d29242d 100644
--- a/drivers/remoteproc/pru_rproc.c
+++ b/drivers/remoteproc/pru_rproc.c
@@ -1003,11 +1003,9 @@ static int pru_rproc_probe(struct platform_device *pdev)
 	if (!data)
 		return -ENODEV;
 
-	ret = of_property_read_string(np, "firmware-name", &fw_name);
-	if (ret) {
-		dev_err(dev, "unable to retrieve firmware-name %d\n", ret);
-		return ret;
-	}
+	ret = rproc_of_parse_firmware(dev, 0, &fw_name);
+	if (ret)
+		return dev_err_probe(dev, ret, "unable to retrieve firmware-name\n");
 
 	rproc = devm_rproc_alloc(dev, pdev->name, &pru_rproc_ops, fw_name,
 				 sizeof(*pru));
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-06 17:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-02 20:27 [PATCH 1/2] remoteproc: pru: Use rproc_of_parse_firmware() to get firmware name Andrew Davis
2026-03-02 20:27 ` [PATCH 2/2] remoteproc: pru: Remove empty remove callback Andrew Davis
2026-03-06 17:35 ` [PATCH 1/2] remoteproc: pru: Use rproc_of_parse_firmware() to get firmware name Mathieu Poirier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.