summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/es2.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-05-27 17:26:29 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-05-27 12:19:29 -0700
commit6adcf44170db6cddcbbf9321244e051a72120555 (patch)
treecf50a61d5a9f730f96c21f178dbd4dac55855a09 /drivers/staging/greybus/es2.c
parent3cbe52c2e07ddb2c1f75e0ff9ff4e33a8e478877 (diff)
downloadop-kernel-dev-6adcf44170db6cddcbbf9321244e051a72120555.zip
op-kernel-dev-6adcf44170db6cddcbbf9321244e051a72120555.tar.gz
greybus: es2: reset cports at disable
Make sure to reset CPorts at disable rather than enable as per specification. Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/es2.c')
-rw-r--r--drivers/staging/greybus/es2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c
index fd59c14..68a8461 100644
--- a/drivers/staging/greybus/es2.c
+++ b/drivers/staging/greybus/es2.c
@@ -602,7 +602,7 @@ static void es2_cport_release(struct gb_host_device *hd, u16 cport_id)
ida_simple_remove(&hd->cport_id_map, cport_id);
}
-static int cport_enable(struct gb_host_device *hd, u16 cport_id)
+static int cport_disable(struct gb_host_device *hd, u16 cport_id)
{
int retval;
@@ -794,7 +794,7 @@ static struct gb_hd_driver es2_driver = {
.message_cancel = message_cancel,
.cport_allocate = es2_cport_allocate,
.cport_release = es2_cport_release,
- .cport_enable = cport_enable,
+ .cport_disable = cport_disable,
.latency_tag_enable = latency_tag_enable,
.latency_tag_disable = latency_tag_disable,
.output = output,
OpenPOWER on IntegriCloud