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

Commit 0280630f authored by Jordan Crouse's avatar Jordan Crouse Committed by Gerrit - the friendly Code Review server
Browse files

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: 0e89c08f ("coresight: Replace functions for tpdm's clocks/regulators")
Change-Id: Ic0dedbade05d4786e3f3d67fd7044785326f9b49
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent a43a8828
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)