]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/fbcmap.c
ACPI: video: Add dev argument for backlight_device_register
[linux-2.6-omap-h63xx.git] / drivers / video / fbcmap.c
index c32a2a50bfa2a0870bd69f5c86bbf68a8c81e64d..e8b135f3d80d1590bf59cd905f213b701fe83a5a 100644 (file)
@@ -13,7 +13,6 @@
 
 #include <linux/string.h>
 #include <linux/module.h>
-#include <linux/tty.h>
 #include <linux/fb.h>
 #include <linux/slab.h>
 
@@ -85,7 +84,7 @@ static struct fb_cmap default_16_colors = {
  *     Allocates memory for a colormap @cmap.  @len is the
  *     number of entries in the palette.
  *
- *     Returns -1 errno on error, or zero on success.
+ *     Returns negative errno on error, or zero on success.
  *
  */
 
@@ -116,7 +115,7 @@ int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp)
 
 fail:
     fb_dealloc_cmap(cmap);
-    return -1;
+    return -ENOMEM;
 }
 
 /**