summaryrefslogtreecommitdiff
path: root/packages/linux/linux-ezx/pxa_serial_dpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/linux/linux-ezx/pxa_serial_dpm.patch')
-rw-r--r--packages/linux/linux-ezx/pxa_serial_dpm.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/linux/linux-ezx/pxa_serial_dpm.patch b/packages/linux/linux-ezx/pxa_serial_dpm.patch
new file mode 100644
index 0000000000..cead1de4b8
--- /dev/null
+++ b/packages/linux/linux-ezx/pxa_serial_dpm.patch
@@ -0,0 +1,25 @@
+Index: linux-2.6.16.5-new/drivers/serial/pxa.c
+===================================================================
+--- linux-2.6.16.5-new.orig/drivers/serial/pxa.c 2006-04-17 13:55:42.000000000 +0200
++++ linux-2.6.16.5-new/drivers/serial/pxa.c 2006-04-17 13:56:18.000000000 +0200
+@@ -915,8 +915,10 @@
+ if (ret != 0)
+ uart_unregister_driver(&serial_pxa_reg);
+
++#ifdef CONFIG_DPM
+ if (! ret)
+ dpm_register_scale(&serial_pxa_nb, SCALE_POSTCHANGE);
++#endif
+
+ return ret;
+ }
+@@ -925,7 +927,9 @@
+ {
+ platform_driver_unregister(&serial_pxa_driver);
+ uart_unregister_driver(&serial_pxa_reg);
++#ifdef CONFIG_DPM
+ dpm_unregister_scale(&serial_pxa_nb, SCALE_POSTCHANGE);
++#endif
+ }
+
+ module_init(serial_pxa_init);