* [PATCH] coresight: of_get_coresight_platform_data needs both OF and CORESIGHT
@ 2017-10-26 9:39 Lingutla Chandrasekhar
0 siblings, 0 replies; only message in thread
From: Lingutla Chandrasekhar @ 2017-10-26 9:39 UTC (permalink / raw)
To: mathieu.poirier
Cc: linux-kernel, linux-arm-msm, Lingutla Chandrasekhar, Jordan Crouse
The file that defines of_get_coresight_platform_data() is indeed
dependent on CONFIG_OF but the entire coresight directory depends
on CONFIG_CORESIGHT so both need to be enabled to make the symbol
resolve.
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index d950dad5056a..d298eea7e6a0 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -262,7 +262,7 @@ static inline int coresight_timeout(void __iomem *addr, u32 offset,
int position, int value) { return 1; }
#endif
-#ifdef CONFIG_OF
+#if defined(CONFIG_OF) && defined(CONFIG_CORESIGHT)
extern int of_coresight_get_cpu(const struct device_node *node);
extern struct coresight_platform_data *
of_get_coresight_platform_data(struct device *dev,
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-10-26 9:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26 9:39 [PATCH] coresight: of_get_coresight_platform_data needs both OF and CORESIGHT Lingutla Chandrasekhar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome