Explorar o código

Merge "drm/msm: Only add available components"

qctecmdr %!s(int64=6) %!d(string=hai) anos
pai
achega
82ff7e3a57
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      msm/msm_drv.c

+ 3 - 2
msm/msm_drv.c

@@ -1839,8 +1839,9 @@ static int add_components_mdp(struct device *mdp_dev,
 		if (!intf)
 			continue;
 
-		drm_of_component_match_add(master_dev, matchptr, compare_of,
-					   intf);
+		if (of_device_is_available(intf))
+			drm_of_component_match_add(master_dev, matchptr,
+						   compare_of, intf);
 		of_node_put(intf);
 	}