Commit 6fa981b4 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: unisys: memregion: Eliminate visor_memregion_get_*() functions

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 81b6032f
...@@ -149,7 +149,7 @@ EXPORT_SYMBOL_GPL(visorchannel_destroy); ...@@ -149,7 +149,7 @@ EXPORT_SYMBOL_GPL(visorchannel_destroy);
HOSTADDRESS HOSTADDRESS
visorchannel_get_physaddr(struct visorchannel *channel) visorchannel_get_physaddr(struct visorchannel *channel)
{ {
return visor_memregion_get_physaddr(&channel->memregion); return channel->memregion.physaddr;
} }
EXPORT_SYMBOL_GPL(visorchannel_get_physaddr); EXPORT_SYMBOL_GPL(visorchannel_get_physaddr);
...@@ -501,7 +501,6 @@ visorchannel_debug(struct visorchannel *channel, int num_queues, ...@@ -501,7 +501,6 @@ visorchannel_debug(struct visorchannel *channel, int num_queues,
{ {
HOSTADDRESS addr = 0; HOSTADDRESS addr = 0;
ulong nbytes = 0, nbytes_region = 0; ulong nbytes = 0, nbytes_region = 0;
struct memregion *memregion = NULL;
struct channel_header hdr; struct channel_header hdr;
struct channel_header *phdr = &hdr; struct channel_header *phdr = &hdr;
int i = 0; int i = 0;
...@@ -510,8 +509,8 @@ visorchannel_debug(struct visorchannel *channel, int num_queues, ...@@ -510,8 +509,8 @@ visorchannel_debug(struct visorchannel *channel, int num_queues,
if (!channel) if (!channel)
return; return;
addr = visor_memregion_get_physaddr(memregion); addr = visorchannel_get_physaddr(channel);
nbytes_region = visor_memregion_get_nbytes(memregion); nbytes_region = visorchannel_get_nbytes(channel);
errcode = visorchannel_read(channel, off, errcode = visorchannel_read(channel, off,
phdr, sizeof(struct channel_header)); phdr, sizeof(struct channel_header));
if (errcode < 0) { if (errcode < 0) {
......
...@@ -33,10 +33,7 @@ int visor_memregion_read(struct memregion *memregion, ...@@ -33,10 +33,7 @@ int visor_memregion_read(struct memregion *memregion,
ulong offset, void *dest, ulong nbytes); ulong offset, void *dest, ulong nbytes);
int visor_memregion_write(struct memregion *memregion, int visor_memregion_write(struct memregion *memregion,
ulong offset, void *src, ulong nbytes); ulong offset, void *src, ulong nbytes);
HOSTADDRESS visor_memregion_get_physaddr(struct memregion *memregion);
ulong visor_memregion_get_nbytes(struct memregion *memregion);
void memregion_dump(struct memregion *memregion, char *s, void memregion_dump(struct memregion *memregion, char *s,
ulong off, ulong len, struct seq_file *seq); ulong off, ulong len, struct seq_file *seq);
void __iomem *visor_memregion_get_pointer(struct memregion *memregion);
#endif #endif
...@@ -55,27 +55,6 @@ unmapit(struct memregion *memregion) ...@@ -55,27 +55,6 @@ unmapit(struct memregion *memregion)
} }
} }
HOSTADDRESS
visor_memregion_get_physaddr(struct memregion *memregion)
{
return memregion->physaddr;
}
EXPORT_SYMBOL_GPL(visor_memregion_get_physaddr);
ulong
visor_memregion_get_nbytes(struct memregion *memregion)
{
return memregion->nbytes;
}
EXPORT_SYMBOL_GPL(visor_memregion_get_nbytes);
void __iomem *
visor_memregion_get_pointer(struct memregion *memregion)
{
return memregion->mapped;
}
EXPORT_SYMBOL_GPL(visor_memregion_get_pointer);
int int
visor_memregion_read(struct memregion *memregion, ulong offset, void *dest, visor_memregion_read(struct memregion *memregion, ulong offset, void *dest,
ulong nbytes) ulong nbytes)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment