staging: unisys: memregion: {un, }mapit() are no longer used
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 5 May 2015 22:36:53 +0000 (18:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 May 2015 13:27:29 +0000 (15:27 +0200)
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>
drivers/staging/unisys/visorutil/memregion_direct.c

index 238e62f682043f2c57c48e76698ea48ed2be918a..82fb263c6747032f813bfb016b3f8d00b25a9020 100644 (file)
 
 #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)