staging: unisys: memregion: Embed memregion in struct channel
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 5 May 2015 22:36:32 +0000 (18:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 May 2015 13:26:04 +0000 (15:26 +0200)
commitb3cbceb36bd413ce11ba2132418b3b35a085a1c5
treedd604fd6d6a6cf5eb2a1cf4f9025300d2e6a5ec5
parent81c7492db05ec452599907ce69e42071e0c5ec03
staging: unisys: memregion: Embed memregion in struct channel

This changes the API for visor_memregion_create() to require a
pre-allocated struct memregion. Embedding this in struct channel
avoids a layer of additional kmalloc()'s and error checks.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchannel.c
drivers/staging/unisys/visorutil/memregion.h
drivers/staging/unisys/visorutil/memregion_direct.c