Loading drivers/hwtracing/coresight/of_coresight.c +9 −4 Original line number Diff line number Diff line Loading @@ -130,9 +130,11 @@ of_get_coresight_platform_data(struct device *dev, if (!pdata) return ERR_PTR(-ENOMEM); ret = of_property_read_string(node, "coresight-name", &pdata->name); if (ret) { /* Use device name as sysfs handle */ pdata->name = dev_name(dev); } /* Get the number of input and output port for this component */ of_coresight_get_ports(node, &pdata->nr_inport, &pdata->nr_outport); Loading Loading @@ -181,6 +183,9 @@ of_get_coresight_platform_data(struct device *dev, if (!rdev) return ERR_PTR(-EPROBE_DEFER); ret = of_property_read_string(rparent, "coresight-name", &pdata->child_names[i]); if (ret) pdata->child_names[i] = dev_name(rdev); pdata->child_ports[i] = rendpoint.id; Loading Loading
drivers/hwtracing/coresight/of_coresight.c +9 −4 Original line number Diff line number Diff line Loading @@ -130,9 +130,11 @@ of_get_coresight_platform_data(struct device *dev, if (!pdata) return ERR_PTR(-ENOMEM); ret = of_property_read_string(node, "coresight-name", &pdata->name); if (ret) { /* Use device name as sysfs handle */ pdata->name = dev_name(dev); } /* Get the number of input and output port for this component */ of_coresight_get_ports(node, &pdata->nr_inport, &pdata->nr_outport); Loading Loading @@ -181,6 +183,9 @@ of_get_coresight_platform_data(struct device *dev, if (!rdev) return ERR_PTR(-EPROBE_DEFER); ret = of_property_read_string(rparent, "coresight-name", &pdata->child_names[i]); if (ret) pdata->child_names[i] = dev_name(rdev); pdata->child_ports[i] = rendpoint.id; Loading