[PATCH net-next 2/3] net: airoha: Add airoha_ppe_dev struct definition
Jakub Kicinski
kuba at kernel.org
Thu Aug 21 18:34:53 PDT 2025
On Tue, 19 Aug 2025 14:21:07 +0200 Lorenzo Bianconi wrote:
> + pdev = of_find_device_by_node(np);
> +
did you mean to put the of_node_put() here?
> + if (!pdev) {
> + dev_err(dev, "cannot find device node %s\n", np->name);
> + of_node_put(np);
> + return ERR_PTR(-ENODEV);
> + }
> + of_node_put(np);
> +
> + if (!try_module_get(THIS_MODULE)) {
> + dev_err(dev, "failed to get the device driver module\n");
> + goto error_pdev_put;
> + }
More information about the Linux-mediatek
mailing list