Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2561
b: refs/heads/master
c: 78c0371
h: refs/heads/master
i:
  2559: 6ce3c72
v: v3
  • Loading branch information
Gerd Knorr authored and Linus Torvalds committed Jun 22, 2005
1 parent 0caab77 commit bf97350
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 27f931dac93057bbae691f66a49b11ff2f483bee
refs/heads/master: 78c03717c415d81879e4dac2e452d1a0d3738a80
8 changes: 4 additions & 4 deletions trunk/drivers/video/vesafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,21 +271,21 @@ static int __init vesafb_probe(struct device *device)

if (!request_mem_region(vesafb_fix.smem_start, size_total, "vesafb")) {
printk(KERN_WARNING
"vesafb: abort, cannot reserve video memory at 0x%lx\n",
"vesafb: cannot reserve video memory at 0x%lx\n",
vesafb_fix.smem_start);
/* We cannot make this fatal. Sometimes this comes from magic
spaces our resource handlers simply don't know about */
}

info = framebuffer_alloc(sizeof(u32) * 256, &dev->dev);
if (!info) {
release_mem_region(vesafb_fix.smem_start, vesafb_fix.smem_len);
release_mem_region(vesafb_fix.smem_start, size_total);
return -ENOMEM;
}
info->pseudo_palette = info->par;
info->par = NULL;

info->screen_base = ioremap(vesafb_fix.smem_start, vesafb_fix.smem_len);
info->screen_base = ioremap(vesafb_fix.smem_start, vesafb_fix.smem_len);
if (!info->screen_base) {
printk(KERN_ERR
"vesafb: abort, cannot ioremap video memory 0x%x @ 0x%lx\n",
Expand Down Expand Up @@ -386,7 +386,7 @@ static int __init vesafb_probe(struct device *device)
request_region(0x3c0, 32, "vesafb");

if (mtrr) {
int temp_size = size_total;
unsigned int temp_size = size_total;
/* Find the largest power-of-two */
while (temp_size & (temp_size - 1))
temp_size &= (temp_size - 1);
Expand Down

0 comments on commit bf97350

Please sign in to comment.