aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_flashmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_flashmap.c')
-rw-r--r--sys/geom/geom_flashmap.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/geom/geom_flashmap.c b/sys/geom/geom_flashmap.c
index ac7344a34bb6..71007a4f7936 100644
--- a/sys/geom/geom_flashmap.c
+++ b/sys/geom/geom_flashmap.c
@@ -43,8 +43,6 @@ __FBSDID("$FreeBSD$");
#include <geom/geom_flashmap.h>
#include <geom/geom_slice.h>
-#include <dev/nand/nand_dev.h>
-
struct g_flashmap_slice {
off_t sl_start;
off_t sl_end;
@@ -65,7 +63,6 @@ static struct {
{ "MMC::device", NULL }
};
-static g_ioctl_t g_flashmap_ioctl;
static g_taste_t g_flashmap_taste;
static int g_flashmap_load(device_t dev, struct g_provider *pp,
@@ -127,26 +124,6 @@ g_flashmap_modify(struct g_flashmap *gfp, struct g_geom *gp,
return (0);
}
-static int
-g_flashmap_ioctl(struct g_provider *pp, u_long cmd, void *data, int fflag,
- struct thread *td)
-{
- struct g_consumer *cp;
- struct g_geom *gp;
-
- if (cmd != NAND_IO_GET_CHIP_PARAM)
- return (ENOIOCTL);
-
- cp = LIST_FIRST(&pp->geom->consumer);
- if (cp == NULL)
- return (ENOIOCTL);
- gp = cp->provider->geom;
- if (gp->ioctl == NULL)
- return (ENOIOCTL);
-
- return (gp->ioctl(cp->provider, cmd, data, fflag, td));
-}
-
static struct g_geom *
g_flashmap_taste(struct g_class *mp, struct g_provider *pp, int flags)
{
@@ -245,7 +222,6 @@ static struct g_class g_flashmap_class = {
.name = FLASHMAP_CLASS_NAME,
.version = G_VERSION,
.taste = g_flashmap_taste,
- .ioctl = g_flashmap_ioctl,
};
DECLARE_GEOM_CLASS(g_flashmap_class, g_flashmap);