summaryrefslogtreecommitdiff
path: root/drivers/input/rmi4
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2016-08-03 18:16:10 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-08-03 18:16:10 -0700
commit326a50f5734c228873eb33c6db6c5240c44f2ecc (patch)
treef954bb63fc74d44e327c578f3114d62ff9d04b86 /drivers/input/rmi4
parent0808882863774ab69066d83f49f511606be024e0 (diff)
parenta485cb037fe64367ec14813f018edb87799c5eb1 (diff)
Merge branch 'next' into for-linus
Prepare second round of input updates for 4.8 merge window.
Diffstat (limited to 'drivers/input/rmi4')
-rw-r--r--drivers/input/rmi4/rmi_bus.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/input/rmi4/rmi_bus.c b/drivers/input/rmi4/rmi_bus.c
index 253df96be427..a73580654c6b 100644
--- a/drivers/input/rmi4/rmi_bus.c
+++ b/drivers/input/rmi4/rmi_bus.c
@@ -232,10 +232,7 @@ err_put_device:
void rmi_unregister_function(struct rmi_function *fn)
{
device_del(&fn->dev);
-
- if (fn->dev.of_node)
- of_node_put(fn->dev.of_node);
-
+ of_node_put(fn->dev.of_node);
put_device(&fn->dev);
}