summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/suncore.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-12-03 09:35:27 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2018-12-03 09:35:27 -0800
commit9099ff769faf879b5cb6e24e04c7904a8352aef0 (patch)
treebbda760074f0a5906f86a3e5c2486c6fee401179 /drivers/tty/serial/suncore.c
parent2595646791c319cadfdbf271563aac97d0843dc7 (diff)
parentdac097c4546e4c5b16dd303a1e97c1d319c8ab3e (diff)
downloadlinux-9099ff769faf879b5cb6e24e04c7904a8352aef0.tar.bz2
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
Pull sparc fixes from David Miller: 1) Some implicit switch fallthrough fixes from Stephen Rothwell. 2) Missing of_node_put() in various sparc drivers from Yangtao Li. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc: drivers/tty: add missing of_node_put() drivers/sbus/char: add of_node_put() sbus: char: add of_node_put() sparc32: supress another implicit-fallthrough warning sparc32: suppress an implicit-fallthrough warning sparc: suppress the implicit-fallthrough warning arch/sparc: Use kzalloc_node
Diffstat (limited to 'drivers/tty/serial/suncore.c')
-rw-r--r--drivers/tty/serial/suncore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/suncore.c b/drivers/tty/serial/suncore.c
index 70a4ea4eaa6e..990376576970 100644
--- a/drivers/tty/serial/suncore.c
+++ b/drivers/tty/serial/suncore.c
@@ -112,6 +112,7 @@ void sunserial_console_termios(struct console *con, struct device_node *uart_dp)
mode = of_get_property(dp, mode_prop, NULL);
if (!mode)
mode = "9600,8,n,1,-";
+ of_node_put(dp);
}
cflag = CREAD | HUPCL | CLOCAL;