All of lore.kernel.org
 help / color / mirror / Atom feed
From: akpm@linux-foundation.org
To: pterjan@mandriva.com, samuel.thibault@ens-lyon.org,
	stable@kernel.org, mm-commits@vger.kernel.org
Subject: - braille_console-only-register-notifiers-when-the-braille-console-is-used.patch removed from -mm tree
Date: Fri, 03 Oct 2008 14:28:44 -0700	[thread overview]
Message-ID: <200810032128.m93LSiRW016638@imap1.linux-foundation.org> (raw)


The patch titled
     braille_console: only register notifiers when the braille console is used
has been removed from the -mm tree.  Its filename was
     braille_console-only-register-notifiers-when-the-braille-console-is-used.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: braille_console: only register notifiers when the braille console is used
From: Pascal Terjan <pterjan@mandriva.com>

Only register the braille driver VT and keyboard notifiers when the
braille console is used.  Avoids eating insert or backspace keys.

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=11242

Signed-off-by: Pascal Terjan <pterjan@mandriva.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/accessibility/braille/braille_console.c |   13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff -puN drivers/accessibility/braille/braille_console.c~braille_console-only-register-notifiers-when-the-braille-console-is-used drivers/accessibility/braille/braille_console.c
--- a/drivers/accessibility/braille/braille_console.c~braille_console-only-register-notifiers-when-the-braille-console-is-used
+++ a/drivers/accessibility/braille/braille_console.c
@@ -376,6 +376,8 @@ int braille_register_console(struct cons
 	console->flags |= CON_ENABLED;
 	console->index = index;
 	braille_co = console;
+	register_keyboard_notifier(&keyboard_notifier_block);
+	register_vt_notifier(&vt_notifier_block);
 	return 0;
 }
 
@@ -383,15 +385,8 @@ int braille_unregister_console(struct co
 {
 	if (braille_co != console)
 		return -EINVAL;
+	unregister_keyboard_notifier(&keyboard_notifier_block);
+	unregister_vt_notifier(&vt_notifier_block);
 	braille_co = NULL;
 	return 0;
 }
-
-static int __init braille_init(void)
-{
-	register_keyboard_notifier(&keyboard_notifier_block);
-	register_vt_notifier(&vt_notifier_block);
-	return 0;
-}

                 reply	other threads:[~2008-10-03 21:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200810032128.m93LSiRW016638@imap1.linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=pterjan@mandriva.com \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=stable@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.