updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / omnibook-git / omnibook-kernel-3.0.patch
blob018a010ee476567a2fdfb2e78884a67ba5556783
1 --- polling.c 2010-01-30 09:05:48.000000000 +0100
2 +++ polling.c 2011-09-21 14:06:13.219085575 +0200
3 @@ -125,7 +125,7 @@
4 if(!key_polling_enabled)
5 goto out;
7 - cancel_rearming_delayed_workqueue(omnibook_wq, &omnibook_poll_work);
8 + cancel_delayed_work_sync(&omnibook_poll_work);
9 dprintk("Scancode emulation for volume buttons disabled.\n");
10 key_polling_enabled = 0;
12 @@ -188,7 +188,7 @@
14 mutex_lock(&poll_mutex);
15 if(key_polling_enabled)
16 - cancel_rearming_delayed_workqueue(omnibook_wq, &omnibook_poll_work);
17 + cancel_delayed_work_sync(&omnibook_poll_work);
18 mutex_unlock(&poll_mutex);
19 return 0;
21 --- Makefile 2011-09-21 14:11:07.063085540 +0200
22 +++ Makefile 2011-09-21 14:11:40.273085536 +0200
23 @@ -125,13 +125,7 @@
25 ifeq ($(OMNIBOOK_WANT_BACKLIGHT),y)
26 ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
27 -# we support backlight interface only after 2.6.16
28 -ifeq ($(shell if [ $(SUBLEVEL) -gt 16 ] ; then echo -n 'y'; fi),y)
29 EXTRA_CFLAGS += -DCONFIG_OMNIBOOK_BACKLIGHT
30 -else
31 -$(warning "Backlight support in only supported for kernel version newer than 2.6.16")
32 -$(warning "Disabling backlight sysfs interface")
33 -endif
34 endif
35 endif