diff options
Diffstat (limited to 'drivers/media/video/rj54n1cb0c.c')
-rw-r--r-- | drivers/media/video/rj54n1cb0c.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/media/video/rj54n1cb0c.c b/drivers/media/video/rj54n1cb0c.c index 57e11b6f19fb..847ccc067e87 100644 --- a/drivers/media/video/rj54n1cb0c.c +++ b/drivers/media/video/rj54n1cb0c.c | |||
@@ -1364,10 +1364,9 @@ static int rj54n1_video_probe(struct soc_camera_device *icd, | |||
1364 | int data1, data2; | 1364 | int data1, data2; |
1365 | int ret; | 1365 | int ret; |
1366 | 1366 | ||
1367 | /* This could be a BUG_ON() or a WARN_ON(), or remove it completely */ | 1367 | /* We must have a parent by now. And it cannot be a wrong one. */ |
1368 | if (!icd->dev.parent || | 1368 | BUG_ON(!icd->parent || |
1369 | to_soc_camera_host(icd->dev.parent)->nr != icd->iface) | 1369 | to_soc_camera_host(icd->parent)->nr != icd->iface); |
1370 | return -ENODEV; | ||
1371 | 1370 | ||
1372 | /* Read out the chip version register */ | 1371 | /* Read out the chip version register */ |
1373 | data1 = reg_read(client, RJ54N1_DEV_CODE); | 1372 | data1 = reg_read(client, RJ54N1_DEV_CODE); |