mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 20:56:23 +00:00
Sonypi: use synchronize_irq instead of sycnronize_sched
We know exactly what IRQ we are using, so synchronize_irq() suits much better. Plus synchronize_sched() will not work for us in -rt kernels. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Acked-by: Mattia Dongili <malattia@linux.it>
This commit is contained in:
parent
dcf65cd41c
commit
3cb93db6e8
1 changed files with 1 additions and 1 deletions
|
@ -1434,7 +1434,7 @@ static int __devexit sonypi_remove(struct platform_device *dev)
|
||||||
{
|
{
|
||||||
sonypi_disable();
|
sonypi_disable();
|
||||||
|
|
||||||
synchronize_sched(); /* Allow sonypi interrupt to complete. */
|
synchronize_irq(sonypi_device.irq);
|
||||||
flush_scheduled_work();
|
flush_scheduled_work();
|
||||||
|
|
||||||
if (useinput) {
|
if (useinput) {
|
||||||
|
|
Loading…
Reference in a new issue