coresight: fix when disabled
This commit is contained in:
parent
5e574f75da
commit
6b388e0ef2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user