forked from Minki/linux
staging: unisys: memregion: Eliminate visor_memregion_destroy()
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>
This commit is contained in:
parent
aefebaa5bc
commit
0dbb3fb66b
@ -124,7 +124,11 @@ visorchannel_destroy(struct visorchannel *channel)
|
||||
{
|
||||
if (!channel)
|
||||
return;
|
||||
visor_memregion_destroy(&channel->memregion);
|
||||
if (channel->memregion.mapped) {
|
||||
iounmap(channel->memregion.mapped);
|
||||
release_mem_region(channel->memregion.physaddr,
|
||||
channel->memregion.nbytes);
|
||||
}
|
||||
kfree(channel);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(visorchannel_destroy);
|
||||
|
@ -34,7 +34,6 @@ int visor_memregion_read(struct memregion *memregion,
|
||||
ulong offset, void *dest, ulong nbytes);
|
||||
int visor_memregion_write(struct memregion *memregion,
|
||||
ulong offset, void *src, ulong nbytes);
|
||||
void visor_memregion_destroy(struct memregion *memregion);
|
||||
HOSTADDRESS visor_memregion_get_physaddr(struct memregion *memregion);
|
||||
ulong visor_memregion_get_nbytes(struct memregion *memregion);
|
||||
void memregion_dump(struct memregion *memregion, char *s,
|
||||
|
@ -115,12 +115,3 @@ visor_memregion_write(struct memregion *memregion, ulong offset, void *src,
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(visor_memregion_write);
|
||||
|
||||
void
|
||||
visor_memregion_destroy(struct memregion *memregion)
|
||||
{
|
||||
if (!memregion)
|
||||
return;
|
||||
unmapit(memregion);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(visor_memregion_destroy);
|
||||
|
Loading…
Reference in New Issue
Block a user