Commit d3a6d33a authored by Mark A. Greer's avatar Mark A. Greer Committed by Samuel Ortiz

NFC: trf7970a: Remove incorrect of_node_put() call

of_property_read_u32() does not take a reference
to the specified OF node so don't call of_node_put()
in trf7970a_get_autosuspend_delay().
Signed-off-by: default avatarMark A. Greer <mgreer@animalcreek.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 83724c33
...@@ -1253,8 +1253,6 @@ static int trf7970a_get_autosuspend_delay(struct device_node *np) ...@@ -1253,8 +1253,6 @@ static int trf7970a_get_autosuspend_delay(struct device_node *np)
if (ret) if (ret)
autosuspend_delay = TRF7970A_AUTOSUSPEND_DELAY; autosuspend_delay = TRF7970A_AUTOSUSPEND_DELAY;
of_node_put(np);
return autosuspend_delay; return autosuspend_delay;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment