The CoreSight components ETM and CPU-Debug are always associated with CPUs. Replace the of_coresight_get_cpu() with a platform agnostic helper, in preparation to add ACPI support.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -292,12 +292,7 @@ static inline void coresight_disclaim_device_unlocked(void __iomem *base) {} · 291 unmodified lines | ||
| 292 | 292 | |
| 293 | 293 | #endif |
| 294 | 294 | |
| 295 | −#ifdef CONFIG_OF | |
| 296 | −extern int of_coresight_get_cpu(const struct device_node *node); | |
| 297 | −#else | |
| 298 | −static inline int of_coresight_get_cpu(const struct device_node *node) | |
| 299 | −{ return 0; } | |
| 300 | −#endif | |
| 295 | +extern int coresight_get_cpu(struct device *dev); | |
| 301 | 296 | |
| 302 | 297 | struct coresight_platform_data *coresight_get_platform_data(struct device *dev); |
| 303 | 298 | |