Skip to content

Commit 504e35d

Browse files
committed
Merge branch 'at91-4.14-trunk/ov7740' into linux-4.14-at91
2 parents c97a2e0 + e472f79 commit 504e35d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/media/i2c/ov7740.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,9 @@ static int ov7740_probe(struct i2c_client *client,
11361136
ov7740_free_controls(ov7740);
11371137
error_detect:
11381138
ov7740_set_power(ov7740, 0);
1139+
#if defined(CONFIG_MEDIA_CONTROLLER)
11391140
media_entity_cleanup(&ov7740->subdev.entity);
1141+
#endif
11401142

11411143
return ret;
11421144
}

0 commit comments

Comments
 (0)