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

Commit 3e820669 authored by Deepak Kumar's avatar Deepak Kumar
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>
Signed-off-by: default avatarDeepak Kumar <dkumar@codeaurora.org>
parent 394ec00f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -313,7 +313,7 @@ static inline void coresight_disable_reg_clk(struct coresight_device *csdev) {}
static inline int coresight_enable_reg_clk(struct coresight_device *csdev) {}
#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,
@@ -330,7 +330,7 @@ static inline struct coresight_platform_data *of_get_coresight_platform_data(
	struct device *dev, const struct device_node *node) { return NULL; }
static inline int of_get_coresight_csr_name(struct device_node *node,
		const char **csr_name){ return -EINVAL; }
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