Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -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;
}
}