Browse Source

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: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Mark A. Greer 11 years ago
parent
commit
d3a6d33a7f
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/nfc/trf7970a.c

+ 0 - 2
drivers/nfc/trf7970a.c

@@ -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;
 }
 }