aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2015-05-05 18:36:57 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-08 15:27:29 +0200
commit0d622e84f8063d4aab75a3d4e4de72efcb85dacb (patch)
tree28c2d67d4442dbdc08442e8f6ca3966a1eced5f8 /drivers/staging/unisys
parentstaging: unisys: visorchannel_write(): Handle partial channel_header writes (diff)
downloadlinux-dev-0d622e84f8063d4aab75a3d4e4de72efcb85dacb.tar.xz
linux-dev-0d622e84f8063d4aab75a3d4e4de72efcb85dacb.zip
staging: unisys: visorchannel_create_guts(): Use visorchannel_read()
There is no benefit to calling visor_memregion_read() at this point. 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>
Diffstat (limited to 'drivers/staging/unisys')
-rw-r--r--drivers/staging/unisys/visorbus/visorchannel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchannel.c b/drivers/staging/unisys/visorbus/visorchannel.c
index da7bd9c362f7..6d7ea8bf435d 100644
--- a/drivers/staging/unisys/visorbus/visorchannel.c
+++ b/drivers/staging/unisys/visorbus/visorchannel.c
@@ -78,8 +78,8 @@ visorchannel_create_guts(HOSTADDRESS physaddr, ulong channel_bytes,
channel->memregion.physaddr = physaddr;
channel->memregion.nbytes = size;
- err = visor_memregion_read(&channel->memregion, 0, &channel->chan_hdr,
- sizeof(struct channel_header));
+ err = visorchannel_read(channel, 0, &channel->chan_hdr,
+ sizeof(struct channel_header));
if (err)
goto cleanup;