Loading drivers/hwtracing/coresight/coresight-cti.c +2 −2 Original line number Diff line number Diff line Loading @@ -1451,8 +1451,8 @@ static int cti_probe(struct amba_device *adev, const struct amba_id *id) drvdata->cpu = -1; cpu_node = of_parse_phandle(adev->dev.of_node, "cpu", 0); if (cpu_node) { drvdata->cpu = pdata ? pdata->cpu : -1; if (drvdata->cpu == -1) { drvdata->cpu = pdata ? pdata->cpu : -ENODEV; if (drvdata->cpu == -ENODEV) { dev_err(drvdata->dev, "CTI cpu node invalid\n"); return -EINVAL; } Loading drivers/hwtracing/coresight/coresight-etm4x.c +2 −2 Original line number Diff line number Diff line Loading @@ -984,9 +984,9 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id) spin_lock_init(&drvdata->spinlock); drvdata->cpu = pdata ? pdata->cpu : -1; drvdata->cpu = pdata ? pdata->cpu : -ENODEV; if (drvdata->cpu == -1) { if (drvdata->cpu == -ENODEV) { dev_info(dev, "CPU not available\n"); return -ENODEV; } Loading drivers/hwtracing/coresight/of_coresight.c +4 −6 Original line number Diff line number Diff line Loading @@ -109,9 +109,9 @@ int of_coresight_get_cpu(const struct device_node *node) dn = of_parse_phandle(node, "cpu", 0); /* Affinity defaults to CPU0 */ /* Affinity defaults to invalid */ if (!dn) return 0; return -ENODEV; for_each_possible_cpu(cpu) { np = of_cpu_device_node_get(cpu); Loading @@ -122,8 +122,8 @@ int of_coresight_get_cpu(const struct device_node *node) } of_node_put(dn); /* Affinity to CPU0 if no cpu nodes are found */ return found ? cpu : 0; /* Affinity to invalid if no cpu nodes are found */ return found ? cpu : -ENODEV; } EXPORT_SYMBOL_GPL(of_coresight_get_cpu); Loading Loading @@ -207,8 +207,6 @@ of_get_coresight_platform_data(struct device *dev, } pdata->cpu = of_coresight_get_cpu(node); /* Affinity defaults to invalid */ pdata->cpu = -1; return pdata; } Loading Loading
drivers/hwtracing/coresight/coresight-cti.c +2 −2 Original line number Diff line number Diff line Loading @@ -1451,8 +1451,8 @@ static int cti_probe(struct amba_device *adev, const struct amba_id *id) drvdata->cpu = -1; cpu_node = of_parse_phandle(adev->dev.of_node, "cpu", 0); if (cpu_node) { drvdata->cpu = pdata ? pdata->cpu : -1; if (drvdata->cpu == -1) { drvdata->cpu = pdata ? pdata->cpu : -ENODEV; if (drvdata->cpu == -ENODEV) { dev_err(drvdata->dev, "CTI cpu node invalid\n"); return -EINVAL; } Loading
drivers/hwtracing/coresight/coresight-etm4x.c +2 −2 Original line number Diff line number Diff line Loading @@ -984,9 +984,9 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id) spin_lock_init(&drvdata->spinlock); drvdata->cpu = pdata ? pdata->cpu : -1; drvdata->cpu = pdata ? pdata->cpu : -ENODEV; if (drvdata->cpu == -1) { if (drvdata->cpu == -ENODEV) { dev_info(dev, "CPU not available\n"); return -ENODEV; } Loading
drivers/hwtracing/coresight/of_coresight.c +4 −6 Original line number Diff line number Diff line Loading @@ -109,9 +109,9 @@ int of_coresight_get_cpu(const struct device_node *node) dn = of_parse_phandle(node, "cpu", 0); /* Affinity defaults to CPU0 */ /* Affinity defaults to invalid */ if (!dn) return 0; return -ENODEV; for_each_possible_cpu(cpu) { np = of_cpu_device_node_get(cpu); Loading @@ -122,8 +122,8 @@ int of_coresight_get_cpu(const struct device_node *node) } of_node_put(dn); /* Affinity to CPU0 if no cpu nodes are found */ return found ? cpu : 0; /* Affinity to invalid if no cpu nodes are found */ return found ? cpu : -ENODEV; } EXPORT_SYMBOL_GPL(of_coresight_get_cpu); Loading Loading @@ -207,8 +207,6 @@ of_get_coresight_platform_data(struct device *dev, } pdata->cpu = of_coresight_get_cpu(node); /* Affinity defaults to invalid */ pdata->cpu = -1; return pdata; } Loading