coresight: remove the unnecessary function coresight_is_bit_set()
authorKaixu Xia <xiakaixu@huawei.com>
Mon, 26 Jan 2015 16:22:22 +0000 (09:22 -0700)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 2 Mar 2015 18:34:20 +0000 (11:34 -0700)
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>
(cherry picked from commit c4546f246636ccf4cda092bcfcafcb5f5f752ec7)
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
include/linux/coresight.h

index 41bdccf1b4ddc8b4083e321e76da643f5acbf5e9..44c1597a738a6a6bb1c7208e4c3337aa678c304d 100644 (file)
@@ -227,7 +227,6 @@ coresight_register(struct coresight_desc *desc);
 extern void coresight_unregister(struct coresight_device *csdev);
 extern int coresight_enable(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,
                             int position, int value);
 #else
@@ -237,8 +236,6 @@ static inline void coresight_unregister(struct coresight_device *csdev) {}
 static inline int
 coresight_enable(struct coresight_device *csdev) { return -ENOSYS; }
 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,
                                     int position, int value) { return 1; }
 #endif