We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0b3b7b commit 273cc34Copy full SHA for 273cc34
drivers/tty/serial/serial_base_bus.c
@@ -13,6 +13,7 @@
13
#include <linux/device.h>
14
#include <linux/idr.h>
15
#include <linux/module.h>
16
+#include <linux/of.h>
17
#include <linux/serial_core.h>
18
#include <linux/slab.h>
19
#include <linux/spinlock.h>
@@ -93,6 +94,7 @@ static void serial_base_ctrl_release(struct device *dev)
93
94
{
95
struct serial_ctrl_device *ctrl_dev = to_serial_base_ctrl_device(dev);
96
97
+ of_node_put(dev->of_node);
98
kfree(ctrl_dev);
99
}
100
@@ -140,6 +142,7 @@ static void serial_base_port_release(struct device *dev)
140
142
141
143
struct serial_port_device *port_dev = to_serial_base_port_device(dev);
144
145
146
kfree(port_dev);
147
148
0 commit comments