summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/es2.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2015-09-22 09:42:52 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2015-09-22 10:56:28 -0700
commit608f6619a295ce755061a046e967d8e32c2f4f5b (patch)
tree6e63835639cff18b186f3b9a09e91e7a7637706d /drivers/staging/greybus/es2.c
parent5c8ad599b942a9a027045e69fc76c84f23c0acf0 (diff)
greybus: es2: comment out unused functions
The Qualcomm kernel builds with -Werror so the existing es2.c driver breaks the build due to unused static functions. As we are still hashing out exactly how to implement this logic at the moment, just comment out the functions to make the build be clean, no logic changes happen here at all. Reported-by: Michael Scott <michael.scott@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/es2.c')
-rw-r--r--drivers/staging/greybus/es2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c
index cd33aa7e6d42..3a5f93f8d661 100644
--- a/drivers/staging/greybus/es2.c
+++ b/drivers/staging/greybus/es2.c
@@ -136,6 +136,8 @@ static int cport_to_ep_pair(struct es1_ap_dev *es1, u16 cport_id)
#define ES1_TIMEOUT 500 /* 500 ms for the SVC to do something */
+/* Disable for now until we work all of this out to keep a warning-free build */
+#if 0
/* Test if the endpoints pair is already mapped to a cport */
static int ep_pair_in_use(struct es1_ap_dev *es1, int ep_pair)
{
@@ -191,6 +193,7 @@ static int unmap_cport(struct es1_ap_dev *es1, u16 cport_id)
{
return map_cport_to_ep(es1, cport_id, 0);
}
+#endif
static struct urb *next_free_urb(struct es1_ap_dev *es1, gfp_t gfp_mask)
{