summaryrefslogtreecommitdiff
path: root/bmm_lib.c
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2012-12-05 11:43:57 +0000
committerRussell King <rmk@arm.linux.org.uk>2012-12-05 11:45:26 +0000
commitd752ee23c4f0db5edd5c1ac686c8871174ff8ffc (patch)
tree50da3fc4a00e529080c0251f3c8ed6aa2682b609 /bmm_lib.c
parent1ed5a89ecc427594796c3a25abc0d57a130aa144 (diff)
Remove unused bmm_get_kern_paddr() function
Userspace should not be dealing with kernel space addresses at all. Thankfully this function is unused, so we can merely delete it.
Diffstat (limited to 'bmm_lib.c')
-rw-r--r--bmm_lib.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/bmm_lib.c b/bmm_lib.c
index 4def40b..d92ca39 100644
--- a/bmm_lib.c
+++ b/bmm_lib.c
@@ -149,25 +149,6 @@ void *bmm_get_vaddr(unsigned long paddr)
return (void *)io.output;
}
-unsigned long bmm_get_kern_paddr(void *vaddr, unsigned long size)
-{
- int ret;
- ioctl_arg_t io;
-
- if(bmm_init() < 0)
- return 0;
-
- io.input = (unsigned long)vaddr;
- io.length = (unsigned long)size;
- io.output = 0;
- io.arg = 0;
- ret = ioctl(bmm_fd, BMM_GET_KERN_PHYS_ADDR, &io);
- if(ret < 0)
- return 0;
-
- return io.output;
-}
-
unsigned long bmm_get_paddr(void *vaddr)
{
int ret;