summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys/visorbus/visorbus_private.h
diff options
context:
space:
mode:
authorSameer Wadgaonkar2017-09-27 19:14:44 +0200
committerGreg Kroah-Hartman2017-09-28 11:20:21 +0200
commit90476670abec373557a6bff6a43b6e490c02e4ec (patch)
tree0562733c93d00d6f587da1505f4f829b15b8c5e6 /drivers/staging/unisys/visorbus/visorbus_private.h
parentstaging: unisys: check the whole channel instead of just guid for match (diff)
downloadkernel-qcow2-linux-90476670abec373557a6bff6a43b6e490c02e4ec.tar.gz
kernel-qcow2-linux-90476670abec373557a6bff6a43b6e490c02e4ec.tar.xz
kernel-qcow2-linux-90476670abec373557a6bff6a43b6e490c02e4ec.zip
staging: unisys: visorbus: simplify visorchannel_create_guts
Removing the two wrapper functions dealing with visorchannel_create() and instead just always use a new version of visorchannel_create() with an additional parameter. 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_private.h')
-rw-r--r--drivers/staging/unisys/visorbus/visorbus_private.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/unisys/visorbus/visorbus_private.h b/drivers/staging/unisys/visorbus/visorbus_private.h
index 841437f41d75..4a8b12d7cfaa 100644
--- a/drivers/staging/unisys/visorbus/visorbus_private.h
+++ b/drivers/staging/unisys/visorbus/visorbus_private.h
@@ -39,9 +39,7 @@ void visorbus_exit(void);
/* visorchannel access functions */
struct visorchannel *visorchannel_create(u64 physaddr, gfp_t gfp,
- const guid_t *guid);
-struct visorchannel *visorchannel_create_with_lock(u64 physaddr, gfp_t gfp,
- const guid_t *guid);
+ const guid_t *guid, bool needs_lock);
void visorchannel_destroy(struct visorchannel *channel);
int visorchannel_read(struct visorchannel *channel, ulong offset,
void *dest, ulong nbytes);