[Pommed-commits] r409 - trunk/pommed/mactel

jblache at alioth.debian.org jblache at alioth.debian.org
Sat Dec 1 18:41:41 UTC 2007


Author: jblache
Date: 2007-12-01 18:41:41 +0000 (Sat, 01 Dec 2007)
New Revision: 409

Modified:
   trunk/pommed/mactel/gma950_backlight.c
Log:
Unmap the card memory if anything goes wrong.


Modified: trunk/pommed/mactel/gma950_backlight.c
===================================================================
--- trunk/pommed/mactel/gma950_backlight.c	2007-12-01 18:38:17 UTC (rev 408)
+++ trunk/pommed/mactel/gma950_backlight.c	2007-12-01 18:41:41 UTC (rev 409)
@@ -341,6 +341,8 @@
       if (INREG(GMA950_REGISTER_OFFSET) & GMA950_LEGACY_MODE)
 	{
 	  logdebug("GMA950 is in legacy backlight control mode, unsupported\n");
+
+	  gma950_backlight_unmap();
 	  return -1;
 	}
 
@@ -351,6 +353,8 @@
       if (INREG(GMA965_REGISTER_OFFSET) & GMA965_LEGACY_MODE)
 	{
 	  logdebug("GMA965 is in legacy backlight control mode, unsupported\n");
+
+	  gma950_backlight_unmap();
 	  return -1;
 	}
 




More information about the Pommed-commits mailing list