staging: unisys: memregion: {un, }mapit() are no longer used
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
6fa981b4cc
commit
d24c3f07a6
@ -25,36 +25,6 @@
|
|||||||
|
|
||||||
#define MYDRVNAME "memregion"
|
#define MYDRVNAME "memregion"
|
||||||
|
|
||||||
static int mapit(struct memregion *memregion);
|
|
||||||
static void unmapit(struct memregion *memregion);
|
|
||||||
|
|
||||||
static int
|
|
||||||
mapit(struct memregion *memregion)
|
|
||||||
{
|
|
||||||
ulong physaddr = (ulong)(memregion->physaddr);
|
|
||||||
ulong nbytes = memregion->nbytes;
|
|
||||||
|
|
||||||
if (!request_mem_region(physaddr, nbytes, MYDRVNAME))
|
|
||||||
return -EBUSY;
|
|
||||||
|
|
||||||
memregion->mapped = ioremap_cache(physaddr, nbytes);
|
|
||||||
if (!memregion->mapped)
|
|
||||||
return -EFAULT;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
unmapit(struct memregion *memregion)
|
|
||||||
{
|
|
||||||
if (memregion->mapped) {
|
|
||||||
iounmap(memregion->mapped);
|
|
||||||
memregion->mapped = NULL;
|
|
||||||
release_mem_region((unsigned long)memregion->physaddr,
|
|
||||||
memregion->nbytes);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user