coresight: remove the unnecessary function coresight_is_bit_set()
This function coresight_is_bit_set() isn't called, so we should remove it. Signed-off-by: Kaixu Xia <xiakaixu@huawei.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7af8792b4d
commit
c4546f2466
@ -227,7 +227,6 @@ coresight_register(struct coresight_desc *desc);
|
|||||||
extern void coresight_unregister(struct coresight_device *csdev);
|
extern void coresight_unregister(struct coresight_device *csdev);
|
||||||
extern int coresight_enable(struct coresight_device *csdev);
|
extern int coresight_enable(struct coresight_device *csdev);
|
||||||
extern void coresight_disable(struct coresight_device *csdev);
|
extern void coresight_disable(struct coresight_device *csdev);
|
||||||
extern int coresight_is_bit_set(u32 val, int position, int value);
|
|
||||||
extern int coresight_timeout(void __iomem *addr, u32 offset,
|
extern int coresight_timeout(void __iomem *addr, u32 offset,
|
||||||
int position, int value);
|
int position, int value);
|
||||||
#else
|
#else
|
||||||
@ -237,8 +236,6 @@ static inline void coresight_unregister(struct coresight_device *csdev) {}
|
|||||||
static inline int
|
static inline int
|
||||||
coresight_enable(struct coresight_device *csdev) { return -ENOSYS; }
|
coresight_enable(struct coresight_device *csdev) { return -ENOSYS; }
|
||||||
static inline void coresight_disable(struct coresight_device *csdev) {}
|
static inline void coresight_disable(struct coresight_device *csdev) {}
|
||||||
static inline int coresight_is_bit_set(u32 val, int position, int value)
|
|
||||||
{ return 0; }
|
|
||||||
static inline int coresight_timeout(void __iomem *addr, u32 offset,
|
static inline int coresight_timeout(void __iomem *addr, u32 offset,
|
||||||
int position, int value) { return 1; }
|
int position, int value) { return 1; }
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user