Procházet zdrojové kódy

sparc64: Do not ignore 'pmu' device ranges.

I must have disabled this due to other bugs which were fixed over
time.  And this is needed in order for child devices of "pmu"
to get proper resource values.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller před 17 roky
rodič
revize
dc8ca2a111
1 změnil soubory, kde provedl 0 přidání a 6 odebrání
  1. 0 6
      arch/sparc64/kernel/of_device.c

+ 0 - 6
arch/sparc64/kernel/of_device.c

@@ -412,12 +412,6 @@ static int __init build_one_resource(struct device_node *parent,
 
 static int __init use_1to1_mapping(struct device_node *pp)
 {
-	/* If this is on the PMU bus, don't try to translate it even
-	 * if a ranges property exists.
-	 */
-	if (!strcmp(pp->name, "pmu"))
-		return 1;
-
 	/* If we have a ranges property in the parent, use it.  */
 	if (of_find_property(pp, "ranges", NULL) != NULL)
 		return 0;