[lkml]   [2017]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] coresight: of_get_coresight_platform_data needs both OF and CORESIGHT
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

Signed-off-by: Jordan Crouse <>
Signed-off-by: Lingutla Chandrasekhar <>

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; }

-#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.
 \ /
  Last update: 2017-10-26 11:40    [W:0.040 / U:0.184 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site