rpms/psb-kmod/F-13 psb-kmod-4.41.1-2.6.34.patch, NONE, 1.1 psb-kmod.spec, 1.1, 1.2

Adam Williamson adamwill at rpmfusion.org
Thu Jul 22 23:20:16 CEST 2010


Author: adamwill

Update of /cvs/nonfree/rpms/psb-kmod/F-13
In directory se02.es.rpmfusion.net:/tmp/cvs-serv1027

Modified Files:
	psb-kmod.spec 
Added Files:
	psb-kmod-4.41.1-2.6.34.patch 
Log Message:
* Thu Jul 22 2010 Adam Williamson <adamwill AT shaw DOT ca> - 4.41.1-12
- add 2.6.34.patch (from Eric Piel, fixes build on 2.6.34)


psb-kmod-4.41.1-2.6.34.patch:
 intel_lvds.c |    7 +++++++
 1 file changed, 7 insertions(+)

--- NEW FILE psb-kmod-4.41.1-2.6.34.patch ---
--- intel_lvds.c.bak	2010-04-02 00:26:45.489008304 +0200
+++ intel_lvds.c	2010-04-02 00:40:51.530267983 +0200
@@ -801,7 +801,14 @@ 
 
 	if ((blc_type == BLC_I2C_TYPE) || (blc_type == BLC_PWM_TYPE)){	
 		/* add /sys/class/backlight interface as standard */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)
+		struct backlight_properties props;
+		memset(&props, 0, sizeof(struct backlight_properties));
+		props.max_brightness = BRIGHTNESS_MAX_LEVEL;
+		psbbl_device = backlight_device_register("psblvds", &dev->pdev->dev, dev, &psbbl_ops, &props);
+#else
 		psbbl_device = backlight_device_register("psblvds", &dev->pdev->dev, dev, &psbbl_ops);
+#endif
 		if (psbbl_device){
 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,20)
 			down(&psbbl_device->sem);




Index: psb-kmod.spec
===================================================================
RCS file: /cvs/nonfree/rpms/psb-kmod/F-13/psb-kmod.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- psb-kmod.spec	15 Jul 2010 20:09:07 -0000	1.1
+++ psb-kmod.spec	22 Jul 2010 21:20:16 -0000	1.2
@@ -7,7 +7,7 @@
 
 Name:		psb-kmod
 Version:	4.41.1
-Release:	11%{?dist}
+Release:	12%{?dist}
 Summary:	Kernel module for Poulsbo graphics chipsets
 
 Group:		System Environment/Kernel
@@ -34,6 +34,8 @@
 Patch5:		psb-kernel-source-4.41.1-i2c-intelfb.patch
 # Fix build for 2.6.32 (from Gentoo via Mandriva)
 Patch6:		psb-kernel-source-4.41.1-2.6.32.patch
+# Fix build for 2.6.34 (Eric Piel: https://patchwork.kernel.org/patch/90678/ )
+Patch7:		psb-kmod-4.41.1-2.6.34.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 ExclusiveArch:	i586 i686
 
@@ -71,6 +73,7 @@
 %patch6 -p1 -b .build2632
   fi
 %patch4 -p1 -b .drmpsb
+%patch7 -p0 -b .build2634
  popd
 done
 
@@ -101,6 +104,9 @@
 
 
 %changelog
+* Thu Jul 22 2010 Adam Williamson <adamwill AT shaw DOT ca> - 4.41.1-12
+- add 2.6.34.patch (from Eric Piel, fixes build on 2.6.34)
+
 * Fri May 21 2010 Adam Williamson <adamwill AT shaw DOT ca> - 4.41.1-11
 - add 2.6.32.patch (from Gentoo via Mandriva, fixes build on 2.6.32)
 



More information about the rpmfusion-commits mailing list