public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vt: initialize con_driver->node in con_init
@ 2013-12-30  3:11 Wang YanQing
  2014-01-09  4:33 ` Greg KH
  2014-02-07 16:45 ` Greg KH
  0 siblings, 2 replies; 4+ messages in thread
From: Wang YanQing @ 2013-12-30  3:11 UTC (permalink / raw)
  To: gregkh; +Cc: jslaby, airlied, akpm, kilobyte, linux-kernel

Commit 6db4063c5b72b46e9793b0f141a7a3984ac6facf
("[PATCH] VT binding: Add sysfs control to the VT layer")
add node item into struct con_driver.

This patch initialize con_driver->node in con_init.

Signed-off-by: Wang YanQing <udknight@gmail.com>
---
 drivers/tty/vt/vt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index edcd6b8..9adb4e0 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -2879,6 +2879,7 @@ static int __init con_init(void)
 		if (con_driver->con == NULL) {
 			con_driver->con = conswitchp;
 			con_driver->desc = display_desc;
+			con_driver->node = i;
 			con_driver->flag = CON_DRIVER_FLAG_INIT;
 			con_driver->first = 0;
 			con_driver->last = MAX_NR_CONSOLES - 1;
-- 
1.8.3.4.8.g69490f3.dirty

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-11  0:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-30  3:11 [PATCH] vt: initialize con_driver->node in con_init Wang YanQing
2014-01-09  4:33 ` Greg KH
2014-02-07 16:45 ` Greg KH
2014-02-11  0:49   ` Wang YanQing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox