mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 14:53:11 +01:00
slimbus: core: Fix mismatch in of_node_get/put
Adding missing corresponding of_node_put
Fixes: 7588a511bd ("slimbus: core: add support to device tree helper")
Signed-off-by: Saravana Kannan <[email protected]>
[Srini: added fixes tag, removed NULL check and updated log]
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
dbf4d13382
commit
0136085748
1 file changed
+1
@@ -282,6 +282,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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user