summaryrefslogtreecommitdiff
path: root/drivers/nfc
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@animalcreek.com>2014-09-02 15:12:15 -0700
committerSamuel Ortiz <sameo@linux.intel.com>2014-09-07 23:13:42 +0200
commitd3a6d33a7f72fa4d3bb0224da0839a5ca871d7a4 (patch)
treed1d5031fe707f8c81985ec38436fe7f33afb677b /drivers/nfc
parent83724c3329c93f9efc7f53498edd4c538e724366 (diff)
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>
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/trf7970a.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/nfc/trf7970a.c b/drivers/nfc/trf7970a.c
index 3e950ddaaf77..4387b55f9c70 100644
--- a/drivers/nfc/trf7970a.c
+++ b/drivers/nfc/trf7970a.c
@@ -1253,8 +1253,6 @@ static int trf7970a_get_autosuspend_delay(struct device_node *np)
if (ret)
autosuspend_delay = TRF7970A_AUTOSUSPEND_DELAY;
- of_node_put(np);
-
return autosuspend_delay;
}