On Mon, Mar 02, 2026 at 02:27:27PM -0600, Andrew Davis wrote:
> There is a helper function to get the firmware name, make use of that.
> 
> Signed-off-by: Andrew Davis <[email protected]>
> ---
>  drivers/remoteproc/pru_rproc.c | 8 +++-----
>  1 file changed, 3 insertions(+), 5 deletions(-)
>

... and this one too.
 
> 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
> 

Reply via email to