diff options
author | Liang He <[email protected]> | 2022-06-19 15:02:57 +0800 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2022-07-04 11:42:59 +0200 |
commit | 562fed945ea482833667f85496eeda766d511386 (patch) | |
tree | 899547df25cdb062da7cfe06f8098adf6952d4dd | |
parent | 2bda24ef95c0311ab93bda00db40486acf30bd0a (diff) |
can: grcan: grcan_probe(): remove extra of_node_get()
In grcan_probe(), of_find_node_by_path() has already increased the
refcount. There is no need to call of_node_get() again, so remove it.
Link: https://lore.kernel.org/all/[email protected]
Fixes: 1e93ed26acf0 ("can: grcan: grcan_probe(): fix broken system id check for errata workaround needs")
Cc: [email protected] # v5.18
Cc: Andreas Larsson <[email protected]>
Signed-off-by: Liang He <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
-rw-r--r-- | drivers/net/can/grcan.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/can/grcan.c b/drivers/net/can/grcan.c index 76df4807d366..4c47c1055eff 100644 --- a/drivers/net/can/grcan.c +++ b/drivers/net/can/grcan.c @@ -1646,7 +1646,6 @@ static int grcan_probe(struct platform_device *ofdev) */ sysid_parent = of_find_node_by_path("/ambapp0"); if (sysid_parent) { - of_node_get(sysid_parent); err = of_property_read_u32(sysid_parent, "systemid", &sysid); if (!err && ((sysid & GRLIB_VERSION_MASK) >= GRCAN_TXBUG_SAFE_GRLIB_VERSION)) |