{
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);
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,