Skip to contentSkip to conversation

saa7134: Fix analog TV demod detection.

PATCH New Dan Carpenter 1 participant 1 message Feb 27, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 saa7134: Fix analog TV demod detection.

There is a missing curly brace so we only look at the first item in the list and then exit.

Fixes ac90aa02d5b9 ('[media] saa7134: add media controller support')
drivers/media/pci/saa7134/saa7134-core.c +2 -1
index 42bc417..8f3ba40 100644
@@ -838,9 +838,10 @@ static void saa7134_create_entities(struct saa7134_dev *dev)
 
 	/* Check if it is using an external analog TV demod */
 	media_device_for_each_entity(entity, dev->media_dev) {
-		if (entity->function = MEDIA_ENT_F_ATV_DECODER)
+		if (entity->function = MEDIA_ENT_F_ATV_DECODER) {
 			decoder = entity;
 			break;
+		}
 	}
 
 	/*