coresight: Introduce generic platform data helper
So far we have hard coded the DT platform parsing code in every driver. Introduce generic helper to parse the information provided by the firmware in a platform agnostic manner, in preparation for the ACPI support. Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
a15dab756b
commit
f03631da4b
@@ -294,14 +294,11 @@ static inline void coresight_disclaim_device_unlocked(void __iomem *base) {}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
extern int of_coresight_get_cpu(const struct device_node *node);
|
||||
extern struct coresight_platform_data *
|
||||
of_get_coresight_platform_data(struct device *dev,
|
||||
const struct device_node *node);
|
||||
#else
|
||||
static inline int of_coresight_get_cpu(const struct device_node *node)
|
||||
{ return 0; }
|
||||
static inline struct coresight_platform_data *of_get_coresight_platform_data(
|
||||
struct device *dev, const struct device_node *node) { return NULL; }
|
||||
#endif
|
||||
|
||||
struct coresight_platform_data *coresight_get_platform_data(struct device *dev);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user