diff options
| author | Jiafei Pan <Jiafei.Pan@nxp.com> | 2026-05-08 11:20:16 +0800 |
|---|---|---|
| committer | Mathieu Poirier <mathieu.poirier@linaro.org> | 2026-05-26 08:33:43 -0600 |
| commit | 2e7a8ad7980dce462e557c9ce7f66e8e168ed5b8 (patch) | |
| tree | 35becfe04fe7e27be395243413d384344e26e7f6 /drivers/remoteproc | |
| parent | 49abb5d6e1ac8169cdfc0c3aa4408e0d90ee5696 (diff) | |
| download | linux-next-2e7a8ad7980dce462e557c9ce7f66e8e168ed5b8.tar.gz linux-next-2e7a8ad7980dce462e557c9ce7f66e8e168ed5b8.zip | |
remoteproc: imx_rproc: Use device node name as processor name
As currently there are maybe multiple remote processors, so change from
using fixed name to using device node name as remote processor name in
order to make them can be distinguished by through of name in sys
filesystem.
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20260508032016.27716-1-Jiafei.Pan@nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Diffstat (limited to 'drivers/remoteproc')
| -rw-r--r-- | drivers/remoteproc/imx_rproc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 7f54322244ac..7662ebd9d2f4 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -1287,8 +1287,7 @@ static int imx_rproc_probe(struct platform_device *pdev) const struct imx_rproc_dcfg *dcfg; int ret; - /* set some other name then imx */ - rproc = devm_rproc_alloc(dev, "imx-rproc", &imx_rproc_ops, + rproc = devm_rproc_alloc(dev, np->name, &imx_rproc_ops, NULL, sizeof(*priv)); if (!rproc) return -ENOMEM; |
