Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317291
b: refs/heads/master
c: 67c4e9f
h: refs/heads/master
i:
  317289: 3162ea2
  317287: 498a6de
v: v3
  • Loading branch information
Javier M. Mellid authored and Greg Kroah-Hartman committed Jun 12, 2012
1 parent 6761d39 commit 2698ae4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: 6fe864409b54f60ed36804752acfd148da459e53
refs/heads/master: 67c4e9f46b5241ff777ced09e29048363de8703f
13 changes: 5 additions & 8 deletions trunk/drivers/staging/sm7xx/smtcfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,16 +724,13 @@ static void smtc_unmap_mmio(struct smtcfb_info *sfb)
static int smtc_map_smem(struct smtcfb_info *sfb,
struct pci_dev *pdev, u_long smem_len)
{
if (sfb->fb.var.bits_per_pixel == 32) {

sfb->fb.fix.smem_start = pci_resource_start(pdev, 0);

#ifdef __BIG_ENDIAN
sfb->fb.fix.smem_start = pci_resource_start(pdev, 0)
+ 0x800000;
#else
sfb->fb.fix.smem_start = pci_resource_start(pdev, 0);
if (sfb->fb.var.bits_per_pixel == 32)
sfb->fb.fix.smem_start += 0x800000;
#endif
} else {
sfb->fb.fix.smem_start = pci_resource_start(pdev, 0);
}

sfb->fb.fix.smem_len = smem_len;

Expand Down

0 comments on commit 2698ae4

Please sign in to comment.