Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22235f21 authored by Jordan Crouse's avatar Jordan Crouse Committed by Lingutla Chandrasekhar
Browse files

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.
Also fix inline specifier.

Change-Id: Ifbec805db02ed02d6887537bb64d9d7dedb18ae9
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent 1d220034
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ static inline int coresight_timeout(void __iomem *addr, u32 offset,
static inline void coresight_abort(void) {}
#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);
extern struct coresight_cti_data *of_get_coresight_cti_data(
@@ -275,7 +275,7 @@ extern struct coresight_cti_data *of_get_coresight_cti_data(
#else
static inline struct coresight_platform_data *of_get_coresight_platform_data(
	struct device *dev, struct device_node *node) { return NULL; }
static inlint struct coresight_cti_data *of_get_coresight_cti_data(
static inline struct coresight_cti_data *of_get_coresight_cti_data(
		struct device *dev, struct device_node *node) { return NULL; }
#endif