Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226292
b: refs/heads/master
c: 5df465d
h: refs/heads/master
v: v3
  • Loading branch information
Nicolas Kaiser authored and Mauro Carvalho Chehab committed Dec 29, 2010
1 parent 7e29d48 commit fe4916a
Show file tree
Hide file tree
Showing 2 changed files with 6 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: ecfc95eb7410c04c23f59b02931e8f8b3aa4a5b3
refs/heads/master: 5df465df7bd9c352289ca63d4d9f78299be72c7d
7 changes: 5 additions & 2 deletions trunk/drivers/media/rc/nuvoton-cir.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,12 @@ static int nvt_hw_detect(struct nvt_dev *nvt)
chip_minor = nvt_cr_read(nvt, CR_CHIP_ID_LO);
nvt_dbg("%s: chip id: 0x%02x 0x%02x", chip_id, chip_major, chip_minor);

if (chip_major != CHIP_ID_HIGH &&
(chip_minor != CHIP_ID_LOW || chip_minor != CHIP_ID_LOW2))
if (chip_major != CHIP_ID_HIGH ||
(chip_minor != CHIP_ID_LOW && chip_minor != CHIP_ID_LOW2)) {
nvt_pr(KERN_ERR, "%s: unsupported chip, id: 0x%02x 0x%02x",
chip_id, chip_major, chip_minor);
ret = -ENODEV;
}

nvt_efm_disable(nvt);

Expand Down

0 comments on commit fe4916a

Please sign in to comment.