summaryrefslogtreecommitdiff
path: root/sys/dev/flash
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2013-09-13 22:18:42 +0000
committerjoerg <joerg@NetBSD.org>2013-09-13 22:18:42 +0000
commitee311f1b3ff93400cdd8c9cb02775e0205a28dfd (patch)
tree470a20a83dce1cb35815b7f1127639e19f4aec9d /sys/dev/flash
parent8404768875967a0131f1c1fa927e8f13a21431d1 (diff)
GC flash_get_part_offset.
Diffstat (limited to 'sys/dev/flash')
-rw-r--r--sys/dev/flash/flash.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/flash/flash.c b/sys/dev/flash/flash.c
index 3d785a6f18d..312039bee9d 100644
--- a/sys/dev/flash/flash.c
+++ b/sys/dev/flash/flash.c
@@ -1,4 +1,4 @@
-/* $NetBSD: flash.c,v 1.9 2011/07/29 20:48:33 ahoka Exp $ */
+/* $NetBSD: flash.c,v 1.10 2013/09/13 22:18:42 joerg Exp $ */
/*-
* Copyright (c) 2011 Department of Software Engineering,
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: flash.c,v 1.9 2011/07/29 20:48:33 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: flash.c,v 1.10 2013/09/13 22:18:42 joerg Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -535,12 +535,6 @@ flash_get_size(dev_t dev)
return sc->sc_partinfo.part_size;
}
-static inline flash_off_t
-flash_get_part_offset(struct flash_softc * const sc, size_t poffset)
-{
- return sc->sc_partinfo.part_offset + poffset;
-}
-
int
flash_erase(device_t self, struct flash_erase_instruction * const ei)
{