diff options
author | Sameer Wadgaonkar | 2017-07-17 22:17:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2017-07-18 08:48:42 +0200 |
commit | 403043c4e1709845deb4553a96ed30505378d71e (patch) | |
tree | 69277406039985b6faa1cb51f1a676de0ac9334d /drivers/staging/unisys/visorbus/visorchipset.c | |
parent | staging: unisys: include: Remove unused CHANNEL_OK defines. (diff) | |
download | kernel-qcow2-linux-403043c4e1709845deb4553a96ed30505378d71e.tar.gz kernel-qcow2-linux-403043c4e1709845deb4553a96ed30505378d71e.tar.xz kernel-qcow2-linux-403043c4e1709845deb4553a96ed30505378d71e.zip |
staging: unisys: moved visor_check_channel from include/channel.h to visorbus/visorbus_main.c
Moved the function visor_check_channel() from include/channel.h to
visorbus/visorbus_main.c.
Signed-off-by: Sameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: David Binder <david.binder@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visorbus/visorchipset.c')
-rw-r--r-- | drivers/staging/unisys/visorbus/visorchipset.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index 1106eb5d8f5e..160a63ef70e4 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -1835,8 +1835,12 @@ visorchipset_init(struct acpi_device *acpi_device) if (err < 0) goto error_destroy_channel; - if (!VISOR_CONTROLVM_CHANNEL_OK_CLIENT( - visorchannel_get_header(controlvm_channel))) + if (!visor_check_channel(visorchannel_get_header(controlvm_channel), + VISOR_CONTROLVM_CHANNEL_UUID, + "controlvm", + sizeof(struct visor_controlvm_channel), + VISOR_CONTROLVM_CHANNEL_VERSIONID, + VISOR_CHANNEL_SIGNATURE)) goto error_delete_groups; /* if booting in a crash kernel */ |