Loading drivers/media/video/bt8xx/bttv-cards.c +10 −12 Original line number Diff line number Diff line Loading @@ -3706,7 +3706,8 @@ static void __devinit osprey_eeprom(struct bttv *btv) for (; offset < 8*16; offset += 16) { unsigned short checksum = 0; /* verify the checksum */ for(i = 0; i<14; i++) checksum += ee[i+offset]; for (i = 0; i < 14; i++) checksum += ee[i+offset]; checksum = ~checksum; /* no idea why */ if ((((checksum>>8)&0x0FF) == ee[offset+14]) && ((checksum & 0x0FF) == ee[offset+15])) { Loading @@ -3721,7 +3722,6 @@ static void __devinit osprey_eeprom(struct bttv *btv) type = (ee[offset+4]<<8) | (ee[offset+5]); switch(type) { /* 848 based */ case 0x0004: btv->c.type = BTTV_BOARD_OSPREY1x0_848; Loading Loading @@ -4149,8 +4149,7 @@ static int tea5757_read(struct bttv *btv) } dprintk("bttv%d: tea5757:",btv->c.nr); for(i = 0; i < 24; i++) { for (i = 0; i < 24; i++) { udelay(5); bus_high(btv,btv->mbox_clk); udelay(5); Loading Loading @@ -4182,8 +4181,7 @@ static int tea5757_write(struct bttv *btv, int value) dprintk("bttv%d: tea5757: write 0x%X\n", btv->c.nr, value); bus_low(btv,btv->mbox_clk); bus_high(btv,btv->mbox_we); for(i = 0; i < 25; i++) { for (i = 0; i < 25; i++) { if (reg & 0x1000000) bus_high(btv,btv->mbox_data); else Loading Loading
drivers/media/video/bt8xx/bttv-cards.c +10 −12 Original line number Diff line number Diff line Loading @@ -3706,7 +3706,8 @@ static void __devinit osprey_eeprom(struct bttv *btv) for (; offset < 8*16; offset += 16) { unsigned short checksum = 0; /* verify the checksum */ for(i = 0; i<14; i++) checksum += ee[i+offset]; for (i = 0; i < 14; i++) checksum += ee[i+offset]; checksum = ~checksum; /* no idea why */ if ((((checksum>>8)&0x0FF) == ee[offset+14]) && ((checksum & 0x0FF) == ee[offset+15])) { Loading @@ -3721,7 +3722,6 @@ static void __devinit osprey_eeprom(struct bttv *btv) type = (ee[offset+4]<<8) | (ee[offset+5]); switch(type) { /* 848 based */ case 0x0004: btv->c.type = BTTV_BOARD_OSPREY1x0_848; Loading Loading @@ -4149,8 +4149,7 @@ static int tea5757_read(struct bttv *btv) } dprintk("bttv%d: tea5757:",btv->c.nr); for(i = 0; i < 24; i++) { for (i = 0; i < 24; i++) { udelay(5); bus_high(btv,btv->mbox_clk); udelay(5); Loading Loading @@ -4182,8 +4181,7 @@ static int tea5757_write(struct bttv *btv, int value) dprintk("bttv%d: tea5757: write 0x%X\n", btv->c.nr, value); bus_low(btv,btv->mbox_clk); bus_high(btv,btv->mbox_we); for(i = 0; i < 25; i++) { for (i = 0; i < 25; i++) { if (reg & 0x1000000) bus_high(btv,btv->mbox_data); else Loading