diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-09-26 17:59:15 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-09-29 19:14:26 +0200 |
commit | 6ab1ce4d542ea1b5ffa40321e021d95de47880ea (patch) | |
tree | b383b7003da3bdf175611b6538fb5621d43d8d89 /drivers/staging/greybus/hid.c | |
parent | 58c85123d9a1801af2558a0c925d90fe1599c27f (diff) | |
download | op-kernel-dev-6ab1ce4d542ea1b5ffa40321e021d95de47880ea.zip op-kernel-dev-6ab1ce4d542ea1b5ffa40321e021d95de47880ea.tar.gz |
greybus: operation: remove gb_operation_destroy
Remove legacy interface to "destroy" operations, which is now just a
wrapper for gb_operation_put.
The old interface name hides the fact that all operations are refcounted
and may live on even after having "destroyed" them.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/hid.c')
-rw-r--r-- | drivers/staging/greybus/hid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/hid.c b/drivers/staging/greybus/hid.c index 0044b84..a2f0612 100644 --- a/drivers/staging/greybus/hid.c +++ b/drivers/staging/greybus/hid.c @@ -92,7 +92,8 @@ static int gb_hid_set_report(struct gb_hid *ghid, u8 report_type, u8 report_id, ret = len; } - gb_operation_destroy(operation); + gb_operation_put(operation); + return ret; } |