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>
ret = len;
}
- gb_operation_destroy(operation);
+ gb_operation_put(operation);
+
return ret;
}
} 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;
}
response_size);
}
}
- gb_operation_destroy(operation);
+
+ gb_operation_put(operation);
error:
do_gettimeofday(&te);
response_size);
}
}
- gb_operation_destroy(operation);
+
+ gb_operation_put(operation);
return ret;
}
gfp_t gfp);
void gb_operation_get(struct gb_operation *operation);
void gb_operation_put(struct gb_operation *operation);
-static inline void gb_operation_destroy(struct gb_operation *operation)
-{
- gb_operation_put(operation);
-}
bool gb_operation_response_alloc(struct gb_operation *operation,
size_t response_size, gfp_t gfp);
} else {
pr_err("transfer operation failed (%d)\n", ret);
}
- gb_operation_destroy(operation);
+
+ gb_operation_put(operation);
msg->actual_length = len;
msg->status = 0;