Loading drivers/hwtracing/coresight/coresight-cpu-debug.c +3 −0 Original line number Diff line number Diff line Loading @@ -592,6 +592,9 @@ static int debug_probe(struct amba_device *adev, const struct amba_id *id) return -ENOMEM; drvdata->cpu = np ? of_coresight_get_cpu(np) : 0; if (drvdata->cpu < 0) return -ENODEV; if (per_cpu(debug_drvdata, drvdata->cpu)) { dev_err(dev, "CPU%d drvdata has already been initialized\n", drvdata->cpu); Loading drivers/hwtracing/coresight/of_coresight.c +3 −4 Original line number Diff line number Diff line Loading @@ -107,14 +107,13 @@ int of_coresight_get_cpu(const struct device_node *node) struct device_node *dn; dn = of_parse_phandle(node, "cpu", 0); /* Affinity defaults to CPU0 */ /* Affinity defaults to invalid */ if (!dn) return 0; return -ENODEV; cpu = of_cpu_node_to_id(dn); of_node_put(dn); /* Affinity to CPU0 if no cpu nodes are found */ return (cpu < 0) ? 0 : cpu; return cpu; } EXPORT_SYMBOL_GPL(of_coresight_get_cpu); Loading Loading
drivers/hwtracing/coresight/coresight-cpu-debug.c +3 −0 Original line number Diff line number Diff line Loading @@ -592,6 +592,9 @@ static int debug_probe(struct amba_device *adev, const struct amba_id *id) return -ENOMEM; drvdata->cpu = np ? of_coresight_get_cpu(np) : 0; if (drvdata->cpu < 0) return -ENODEV; if (per_cpu(debug_drvdata, drvdata->cpu)) { dev_err(dev, "CPU%d drvdata has already been initialized\n", drvdata->cpu); Loading
drivers/hwtracing/coresight/of_coresight.c +3 −4 Original line number Diff line number Diff line Loading @@ -107,14 +107,13 @@ int of_coresight_get_cpu(const struct device_node *node) struct device_node *dn; dn = of_parse_phandle(node, "cpu", 0); /* Affinity defaults to CPU0 */ /* Affinity defaults to invalid */ if (!dn) return 0; return -ENODEV; cpu = of_cpu_node_to_id(dn); of_node_put(dn); /* Affinity to CPU0 if no cpu nodes are found */ return (cpu < 0) ? 0 : cpu; return cpu; } EXPORT_SYMBOL_GPL(of_coresight_get_cpu); Loading