From: Mark A. Greer Date: Tue, 2 Sep 2014 22:12:15 +0000 (-0700) Subject: NFC: trf7970a: Remove incorrect of_node_put() call X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d3a6d33a7f72fa4d3bb0224da0839a5ca871d7a4;p=linux-beck.git 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 Signed-off-by: Samuel Ortiz --- 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; }