]> git.neil.brown.name Git - history.git/commitdiff
input: Change order of search for beeper devices in keyboard.c,
authorNeil Brown <neilb@cse.unsw.edu.au>
Fri, 20 Jun 2003 21:44:26 +0000 (14:44 -0700)
committerVojtech Pavlik <vojtech@kernel.bkbits.net>
Fri, 20 Jun 2003 21:44:26 +0000 (14:44 -0700)
       so that it is easier to replace a beeper with a different
       driver

drivers/char/keyboard.c

index 3e5b1fe6452bb63f7c7a0c318e9fe1a8abce9a64..fba8f81379ef3e9b53a5f96bf394dfc0713d3271 100644 (file)
@@ -242,7 +242,7 @@ void kd_mksound(unsigned int hz, unsigned int ticks)
        del_timer(&kd_mksound_timer);
 
        if (hz) {
-               list_for_each(node,&kbd_handler.h_list) {
+               list_for_each_prev(node,&kbd_handler.h_list) {
                        struct input_handle *handle = to_handle_h(node);
                        if (test_bit(EV_SND, handle->dev->evbit)) {
                                if (test_bit(SND_TONE, handle->dev->sndbit)) {