summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2015-05-05 18:36:53 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-08 15:27:29 +0200
commitd24c3f07a6bae3b368681d25aa4eef380aa2e8f0 (patch)
tree2794a3e1e5130c79aa2c7b175d56e370c2089c44 /drivers/staging
parent6fa981b4cca312cab0df77c59ed1269b3333b36a (diff)
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/unisys/visorutil/memregion_direct.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/staging/unisys/visorutil/memregion_direct.c b/drivers/staging/unisys/visorutil/memregion_direct.c
index 238e62f68204..82fb263c6747 100644
--- a/drivers/staging/unisys/visorutil/memregion_direct.c
+++ b/drivers/staging/unisys/visorutil/memregion_direct.c
@@ -25,36 +25,6 @@
#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
visor_memregion_read(struct memregion *memregion, ulong offset, void *dest,
ulong nbytes)