From e64e0d283a6be977af3bfba4f9a559630a7836ee Mon Sep 17 00:00:00 2001 From: Jordan Crouse Date: Thu, 25 Feb 2016 09:16:22 -0700 Subject: 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 resolve. Signed-off-by: Jordan Crouse --- include/linux/coresight.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/coresight.h b/include/linux/coresight.h index d22570d2a646..3a3ba938ff01 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h @@ -248,7 +248,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 struct coresight_platform_data *of_get_coresight_platform_data( struct device *dev, struct device_node *node); #else -- cgit v1.2.3