aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/loopback.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-04-29 17:08:35 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-04-29 14:27:05 -0700
commitb1f8bfea65183b4575e3dde64641f7340a3dfa38 (patch)
tree439f34d99b24c19d51502ba3c763cea7f5f2da2c /drivers/staging/greybus/loopback.c
parentgreybus: control: implement mode-switch operation (diff)
downloadlinux-dev-b1f8bfea65183b4575e3dde64641f7340a3dfa38.tar.xz
linux-dev-b1f8bfea65183b4575e3dde64641f7340a3dfa38.zip
greybus: loopback: remove unsupported version request
Remove the unsupported version request from the loopback-driver request handler. Unsupported requests are already handled and logged using the default case. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/loopback.c')
-rw-r--r--drivers/staging/greybus/loopback.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
index 5e009e1955ab..ccb2799c3b0a 100644
--- a/drivers/staging/greybus/loopback.c
+++ b/drivers/staging/greybus/loopback.c
@@ -800,9 +800,6 @@ static int gb_loopback_request_handler(struct gb_operation *operation)
/* By convention, the AP initiates the version operation */
switch (operation->type) {
- case GB_REQUEST_TYPE_PROTOCOL_VERSION:
- dev_err(dev, "module-initiated version operation\n");
- return -EINVAL;
case GB_LOOPBACK_TYPE_PING:
case GB_LOOPBACK_TYPE_SINK:
return 0;