coresight: Fix the coresight_enable_reg_clk() stub

coresight_enable_reg_clk() is supposed to return a value. Fix up the stub
to return -EINVAL.

Fixes: 0e89c08 ("coresight: Replace functions for tpdm's clocks/regulators")
Change-Id: Ic0dedbade05d4786e3f3d67fd7044785326f9b49
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
This commit is contained in:
Jordan Crouse
2019-06-05 14:34:32 -06:00
committed by Gerrit - the friendly Code Review server
parent a43a88285e
commit 0280630f61

View File

@@ -317,7 +317,8 @@ static inline int coresight_timeout(void __iomem *addr, u32 offset,
int position, int value) { return 1; }
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) {}
static inline int coresight_enable_reg_clk(struct coresight_device *csdev)
{ return -EINVAL; }
#endif
#if defined(CONFIG_OF) && defined(CONFIG_CORESIGHT)