소스 검색

[media] fc2580: add missing error status when probe() fails

We must return -ENODEV error on case probe() fails to detect chip.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Antti Palosaari 10 년 전
부모
커밋
f00245c2e8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      drivers/media/tuners/fc2580.c

+ 1 - 0
drivers/media/tuners/fc2580.c

@@ -571,6 +571,7 @@ static int fc2580_probe(struct i2c_client *client,
 	case 0x5a:
 		break;
 	default:
+		ret = -ENODEV;
 		goto err_kfree;
 	}