From: Dmitry Torokhov Date: Wed, 21 Nov 2007 19:16:38 +0000 (-0500) Subject: Sonypi: use synchronize_irq instead of sycnronize_sched X-Git-Tag: v2.6.24-rc4~89^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3cb93db6e89bdffeae1f001bd87c9e96f9b634df;p=linux-2.6-omap-h63xx.git 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 Acked-by: Mattia Dongili --- diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c index 172d3e47070..921c6d2bc8f 100644 --- a/drivers/char/sonypi.c +++ b/drivers/char/sonypi.c @@ -1434,7 +1434,7 @@ static int __devexit sonypi_remove(struct platform_device *dev) { sonypi_disable(); - synchronize_sched(); /* Allow sonypi interrupt to complete. */ + synchronize_irq(sonypi_device.irq); flush_scheduled_work(); if (useinput) {