Commit 2a9f6170 authored by Antonino A. Daplas's avatar Antonino A. Daplas Committed by Linus Torvalds

[PATCH] fbdev: asiliantfb: Driver cleanups

- allocate just enough space for the pseudo_palette
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f4a41836
...@@ -549,7 +549,7 @@ asiliantfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) ...@@ -549,7 +549,7 @@ asiliantfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent)
if (!request_mem_region(addr, size, "asiliantfb")) if (!request_mem_region(addr, size, "asiliantfb"))
return -EBUSY; return -EBUSY;
p = framebuffer_alloc(sizeof(u32) * 256, &dp->dev); p = framebuffer_alloc(sizeof(u32) * 16, &dp->dev);
if (!p) { if (!p) {
release_mem_region(addr, size); release_mem_region(addr, size);
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment