diff options
author | 2020-05-27 13:53:06 +0200 | |
---|---|---|
committer | 2020-05-27 14:03:34 +0200 | |
commit | ddf0f124ae0a252a8d0d10ead52e205e9a58aa0d (patch) | |
tree | 544cd60a60153c247b8a2f6aae59e1ffb8193d16 /drivers/staging | |
parent | staging: most: usb: use function sysfs_streq (diff) | |
download | linux-ddf0f124ae0a252a8d0d10ead52e205e9a58aa0d.tar.gz linux-ddf0f124ae0a252a8d0d10ead52e205e9a58aa0d.tar.bz2 linux-ddf0f124ae0a252a8d0d10ead52e205e9a58aa0d.zip |
staging: vchi: Get rid of vchi_service_destroy()
The function has no users.
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/20200527115400.31391-2-nsaenzjulienne@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/vc04_services/interface/vchi/vchi.h | 3 | ||||
-rw-r--r-- | drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c | 19 |
2 files changed, 0 insertions, 22 deletions
diff --git a/drivers/staging/vc04_services/interface/vchi/vchi.h b/drivers/staging/vc04_services/interface/vchi/vchi.h index ff2b960d8cac..686cfc536012 100644 --- a/drivers/staging/vc04_services/interface/vchi/vchi.h +++ b/drivers/staging/vc04_services/interface/vchi/vchi.h @@ -83,9 +83,6 @@ extern uint32_t vchi_current_time(struct vchi_instance_handle *instance_handle); /****************************************************************************** * Global service API *****************************************************************************/ -// Routine to destroy a service -extern int32_t vchi_service_destroy(const struct vchi_service_handle *handle); - // Routine to open a named service extern int32_t vchi_service_open(struct vchi_instance_handle *instance_handle, struct service_creation *setup, diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c index efdd3b1c7d85..9a040651bb9b 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c @@ -642,25 +642,6 @@ int32_t vchi_service_close(const struct vchi_service_handle *handle) } EXPORT_SYMBOL(vchi_service_close); -int32_t vchi_service_destroy(const struct vchi_service_handle *handle) -{ - int32_t ret = -1; - struct shim_service *service = (struct shim_service *)handle; - - if (service) { - enum vchiq_status status = vchiq_remove_service(service->handle); - - if (status == VCHIQ_SUCCESS) { - service_free(service); - service = NULL; - } - - ret = vchiq_status_to_vchi(status); - } - return ret; -} -EXPORT_SYMBOL(vchi_service_destroy); - int32_t vchi_service_set_option(const struct vchi_service_handle *handle, enum vchi_service_option option, int value) |