The patch number 14411 was added via Douglas Schilling Landgraf 
<[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <[email protected]>

------

From: Douglas Schilling Landgraf  <[email protected]>
mt9t031: fix runtime-pm


runtime-pm is only available for kernels >= 2.6.32

Priority: normal

Signed-off-by: Douglas Schilling Landgraf <[email protected]>


---

 linux/drivers/media/video/mt9t031.c |    4 ++++
 1 file changed, 4 insertions(+)

diff -r 9a06eaa2004b -r 00872cf41803 linux/drivers/media/video/mt9t031.c
--- a/linux/drivers/media/video/mt9t031.c       Tue Mar 09 19:48:25 2010 -0300
+++ b/linux/drivers/media/video/mt9t031.c       Tue Mar 09 22:34:51 2010 -0300
@@ -686,6 +686,7 @@
  * Power Management:
  * This function does nothing for now but must be present for pm to work
  */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
 static int mt9t031_runtime_suspend(struct device *dev)
 {
        return 0;
@@ -729,10 +730,13 @@
        .runtime_suspend        = mt9t031_runtime_suspend,
        .runtime_resume         = mt9t031_runtime_resume,
 };
+#endif
 
 static struct device_type mt9t031_dev_type = {
        .name   = "MT9T031",
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
        .pm     = &mt9t031_dev_pm_ops,
+#endif
 };
 
 /*


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/00872cf418039c701e47afc77a3331fed5458617

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to