Merge tag 'pinctrl-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[firefly-linux-kernel-4.4.55.git] / drivers / accessibility / braille / braille_console.c
index c339a0880e6ee14ad2df04ecf8a91ae985bfe2d7..d21167bfc86564b480f21c9b690fe263a0609a73 100644 (file)
@@ -244,16 +244,13 @@ static int keyboard_notifier_call(struct notifier_block *blk,
 
                        switch (val) {
                        case KVAL(K_CAPS):
-                               on_off = vc_kbd_led(kbd_table + fg_console,
-                                               VC_CAPSLOCK);
+                               on_off = vt_get_leds(fg_console, VC_CAPSLOCK);
                                break;
                        case KVAL(K_NUM):
-                               on_off = vc_kbd_led(kbd_table + fg_console,
-                                               VC_NUMLOCK);
+                               on_off = vt_get_leds(fg_console, VC_NUMLOCK);
                                break;
                        case KVAL(K_HOLD):
-                               on_off = vc_kbd_led(kbd_table + fg_console,
-                                               VC_SCROLLOCK);
+                               on_off = vt_get_leds(fg_console, VC_SCROLLOCK);
                                break;
                        }
                        if (on_off == 1)