|
@@ -220,13 +220,15 @@ static int vsp1_create_entities(struct vsp1_device *vsp1)
|
|
|
}
|
|
|
|
|
|
/* Instantiate all the entities. */
|
|
|
- vsp1->bru = vsp1_bru_create(vsp1);
|
|
|
- if (IS_ERR(vsp1->bru)) {
|
|
|
- ret = PTR_ERR(vsp1->bru);
|
|
|
- goto done;
|
|
|
- }
|
|
|
+ if (vsp1->pdata.features & VSP1_HAS_BRU) {
|
|
|
+ vsp1->bru = vsp1_bru_create(vsp1);
|
|
|
+ if (IS_ERR(vsp1->bru)) {
|
|
|
+ ret = PTR_ERR(vsp1->bru);
|
|
|
+ goto done;
|
|
|
+ }
|
|
|
|
|
|
- list_add_tail(&vsp1->bru->entity.list_dev, &vsp1->entities);
|
|
|
+ list_add_tail(&vsp1->bru->entity.list_dev, &vsp1->entities);
|
|
|
+ }
|
|
|
|
|
|
vsp1->hsi = vsp1_hsit_create(vsp1, true);
|
|
|
if (IS_ERR(vsp1->hsi)) {
|
|
@@ -541,6 +543,7 @@ static int vsp1_parse_dt(struct vsp1_device *vsp1)
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
+ pdata->features |= VSP1_HAS_BRU;
|
|
|
pdata->num_bru_inputs = 4;
|
|
|
|
|
|
return 0;
|