Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67556
b: refs/heads/master
c: 3cb3ec2
h: refs/heads/master
v: v3
  • Loading branch information
Grant Likely committed Oct 10, 2007
1 parent 930a4ac commit 354a6dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 258de4badd5b7b5d168307638f755bd4df16c18e
refs/heads/master: 3cb3ec2c26473d8123a468abfaca1e926344b1c2
14 changes: 7 additions & 7 deletions trunk/drivers/video/xilinxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* Geert Uytterhoeven.
*/

#include <linux/device.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/version.h>
Expand Down Expand Up @@ -214,22 +215,21 @@ xilinxfb_drv_probe(struct device *dev)

drvdata = kzalloc(sizeof(*drvdata), GFP_KERNEL);
if (!drvdata) {
printk(KERN_ERR "Couldn't allocate device private record\n");
dev_err(dev, "Couldn't allocate device private record\n");
return -ENOMEM;
}
dev_set_drvdata(dev, drvdata);

/* Map the control registers in */
regs_res = platform_get_resource(pdev, IORESOURCE_IO, 0);
if (!regs_res || (regs_res->end - regs_res->start + 1 < 8)) {
printk(KERN_ERR "Couldn't get registers resource\n");
dev_err(dev, "Couldn't get registers resource\n");
retval = -EFAULT;
goto failed1;
}

if (!request_mem_region(regs_res->start, 8, DRIVER_NAME)) {
printk(KERN_ERR
"Couldn't lock memory region at 0x%08X\n",
dev_err(dev, "Couldn't lock memory region at 0x%08X\n",
regs_res->start);
retval = -EBUSY;
goto failed1;
Expand All @@ -241,7 +241,7 @@ xilinxfb_drv_probe(struct device *dev)
drvdata->fb_virt = dma_alloc_coherent(dev, PAGE_ALIGN(FB_SIZE),
&drvdata->fb_phys, GFP_KERNEL);
if (!drvdata->fb_virt) {
printk(KERN_ERR "Could not allocate frame buffer memory\n");
dev_err(dev, "Could not allocate frame buffer memory\n");
retval = -ENOMEM;
goto failed2;
}
Expand All @@ -267,7 +267,7 @@ xilinxfb_drv_probe(struct device *dev)
drvdata->info.pseudo_palette = drvdata->pseudo_palette;

if (fb_alloc_cmap(&drvdata->info.cmap, PALETTE_ENTRIES_NO, 0) < 0) {
printk(KERN_ERR "Fail to allocate colormap (%d entries)\n",
dev_err(dev, "Fail to allocate colormap (%d entries)\n",
PALETTE_ENTRIES_NO);
retval = -EFAULT;
goto failed3;
Expand All @@ -282,7 +282,7 @@ xilinxfb_drv_probe(struct device *dev)

/* Register new frame buffer */
if (register_framebuffer(&drvdata->info) < 0) {
printk(KERN_ERR "Could not register frame buffer\n");
dev_err(dev, "Could not register frame buffer\n");
retval = -EINVAL;
goto failed4;
}
Expand Down

0 comments on commit 354a6dc

Please sign in to comment.