Commit 122a6c72 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] janitor: handle locking in joydump same as in tmdc

From: Domen Puncer <domen@coderock.org>

Did it the way it is in drivers/input/joystick/tmdc.c
parent c9e33c8f
......@@ -81,8 +81,7 @@ static void __devinit joydump_connect(struct gameport *gameport, struct gameport
t = 0;
i = 1;
save_flags(flags);
cli();
local_irq_save(flags);
u = gameport_read(gameport);
......@@ -103,7 +102,7 @@ static void __devinit joydump_connect(struct gameport *gameport, struct gameport
t++;
}
restore_flags(flags);
local_irq_restore(flags);
/*
* Dump data.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment