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/i2c.c | |
parent | 58c85123d9a1801af2558a0c925d90fe1599c27f (diff) |
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/i2c.c')
-rw-r--r-- | drivers/staging/greybus/i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/i2c.c b/drivers/staging/greybus/i2c.c index 75b92d683036..bf6d11b36b83 100644 --- a/drivers/staging/greybus/i2c.c +++ b/drivers/staging/greybus/i2c.c @@ -218,7 +218,8 @@ static int gb_i2c_transfer_operation(struct gb_i2c_device *gb_i2c_dev, } else if (!gb_i2c_expected_transfer_error(ret)) { pr_err("transfer operation failed (%d)\n", ret); } - gb_operation_destroy(operation); + + gb_operation_put(operation); return ret; } |