coresight: fix when disabled

This commit is contained in:
spakkkk 2020-11-02 20:30:11 +00:00
parent 5e574f75da
commit 6b388e0ef2

View File

@ -325,6 +325,7 @@ static inline void coresight_abort(void) {}
static inline void coresight_disable_reg_clk(struct coresight_device *csdev) {}
static inline int coresight_enable_reg_clk(struct coresight_device *csdev)
{ return -EINVAL; }
#if defined(CONFIG_CORESIGHT)
static inline void coresight_disable_all_source_link(void) {};
static inline void coresight_enable_all_source_link(void) {};
static inline int coresight_claim_device_unlocked(void __iomem *base)
@ -345,6 +346,7 @@ static inline bool coresight_loses_context_with_cpu(struct device *dev)
return false;
}
#endif
#endif
#if defined(CONFIG_OF) && defined(CONFIG_CORESIGHT)
extern int of_coresight_get_cpu(const struct device_node *node);