diff options
author | Saravana Kannan <saravanak@google.com> | 2020-05-11 18:13:34 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-22 10:32:07 +0300 |
commit | 6d0541ea5e64132885a980e40280c6fe5915d3ab (patch) | |
tree | a0fd415a73020168accdfca1c1178b5ce02f8033 | |
parent | b0f5383a46ec4109de3274c2d80aed6247026063 (diff) | |
download | linux-6d0541ea5e64132885a980e40280c6fe5915d3ab.tar.xz |
slimbus: core: Fix mismatch in of_node_get/put
commit 01360857486c0e4435dea3aa2f78b47213b7cf6a upstream.
Adding missing corresponding of_node_put
Fixes: 7588a511bdb4 ("slimbus: core: add support to device tree helper")
Signed-off-by: Saravana Kannan <saravanak@google.com>
[Srini: added fixes tag, removed NULL check and updated log]
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200511151334.362-3-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/slimbus/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/slimbus/core.c b/drivers/slimbus/core.c index 95b00d28ad6e..943172806a8a 100644 --- a/drivers/slimbus/core.c +++ b/drivers/slimbus/core.c @@ -236,6 +236,7 @@ EXPORT_SYMBOL_GPL(slim_register_controller); /* slim_remove_device: Remove the effect of slim_add_device() */ static void slim_remove_device(struct slim_device *sbdev) { + of_node_put(sbdev->dev.of_node); device_unregister(&sbdev->dev); } |