summaryrefslogtreecommitdiff
path: root/drivers/staging/unisys/visorbus/visorbus_main.c
diff options
context:
space:
mode:
authorSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>2017-08-22 13:27:35 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-22 15:14:55 -0700
commitb74856b4193be752493fa80809abdba508cb3365 (patch)
tree03b9d08d2746a8a678987c7bd98606f7a68186fa /drivers/staging/unisys/visorbus/visorbus_main.c
parent51c0f81cca9dbe01c1bada3db62daef839431175 (diff)
staging: unisys: visorbus: Get rid of passthrough function visorchipset_device_destroy
The function visorchipset_device_destroy just called remove_visor_device, we can just combine it with remove_visor_device. Signed-off-by: Sameer Wadgaonkar <sameer.wadgaonkar@unisys.com> Signed-off-by: David Kershner <david.kershner@unisys.com> Reviewed-by: Tim Sell <timothy.sell@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visorbus/visorbus_main.c')
-rw-r--r--drivers/staging/unisys/visorbus/visorbus_main.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c
index 1c037a3149ee..38f07b02693a 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/drivers/staging/unisys/visorbus/visorbus_main.c
@@ -716,11 +716,12 @@ err_put:
return err;
}
-static void remove_visor_device(struct visor_device *dev)
+void remove_visor_device(struct visor_device *dev)
{
list_del(&dev->list_all);
put_device(&dev->device);
device_unregister(&dev->device);
+ visorbus_response(dev, 0, CONTROLVM_DEVICE_DESTROY);
}
static int get_vbus_header_info(struct visorchannel *chan,
@@ -1119,12 +1120,6 @@ static void remove_all_visor_devices(void)
}
}
-void visorchipset_device_destroy(struct visor_device *dev_info)
-{
- remove_visor_device(dev_info);
- visorbus_response(dev_info, 0, CONTROLVM_DEVICE_DESTROY);
-}
-
/*
* pause_state_change_complete() - the callback function to be called by a
* visorbus function driver when a