Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97749
b: refs/heads/master
c: c1c36f3
h: refs/heads/master
i:
  97747: 2628826
v: v3
  • Loading branch information
Al Viro authored and Mauro Carvalho Chehab committed Jun 5, 2008
1 parent 043e62c commit 19f4dd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 576904bb8941d2ae958a097888cee418d5192144
refs/heads/master: c1c36f3128c89aa96f01cbf6d40b0cd77a8bc45e
5 changes: 3 additions & 2 deletions trunk/drivers/media/video/bt8xx/bttv-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <linux/firmware.h>
#include <net/checksum.h>

#include <asm/unaligned.h>
#include <asm/io.h>

#include "bttvp.h"
Expand Down Expand Up @@ -3858,7 +3859,7 @@ static void __devinit osprey_eeprom(struct bttv *btv, const u8 ee[256])
ee += i;

/* found a valid descriptor */
type = be16_to_cpup((u16*)(ee+4));
type = get_unaligned_be16((__be16 *)(ee+4));

switch(type) {
/* 848 based */
Expand Down Expand Up @@ -3918,7 +3919,7 @@ static void __devinit osprey_eeprom(struct bttv *btv, const u8 ee[256])
btv->c.nr, type);
break;
}
serial = be32_to_cpup((u32*)(ee+6));
serial = get_unaligned_be32((__be32 *)(ee+6));
}

printk(KERN_INFO "bttv%d: osprey eeprom: card=%d '%s' serial=%u\n",
Expand Down

0 comments on commit 19f4dd8

Please sign in to comment.