X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Ffbcmap.c;fp=drivers%2Fvideo%2Ffbcmap.c;h=c32a2a50bfa2a0870bd69f5c86bbf68a8c81e64d;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=e8b135f3d80d1590bf59cd905f213b701fe83a5a;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/video/fbcmap.c b/drivers/video/fbcmap.c index e8b135f3d..c32a2a50b 100644 --- a/drivers/video/fbcmap.c +++ b/drivers/video/fbcmap.c @@ -13,6 +13,7 @@ #include #include +#include #include #include @@ -84,7 +85,7 @@ static struct fb_cmap default_16_colors = { * Allocates memory for a colormap @cmap. @len is the * number of entries in the palette. * - * Returns negative errno on error, or zero on success. + * Returns -1 errno on error, or zero on success. * */ @@ -115,7 +116,7 @@ int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp) fail: fb_dealloc_cmap(cmap); - return -ENOMEM; + return -1; } /**