From: Jes Sorensen Date: Tue, 5 May 2015 22:36:57 +0000 (-0400) Subject: staging: unisys: visorchannel_create_guts(): Use visorchannel_read() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=0d622e84f8063d4aab75a3d4e4de72efcb85dacb;p=deliverable%2Flinux.git 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 Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- 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;