summaryrefslogtreecommitdiffstats
path: root/sys/dev/patm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/patm')
-rw-r--r--sys/dev/patm/if_patm_attach.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/patm/if_patm_attach.c b/sys/dev/patm/if_patm_attach.c
index 2e01d0f..a52af72 100644
--- a/sys/dev/patm/if_patm_attach.c
+++ b/sys/dev/patm/if_patm_attach.c
@@ -284,13 +284,13 @@ patm_attach(device_t dev)
patm_env_getuint(sc, &sc->debug, "debug");
if (SYSCTL_ADD_PROC(&sc->sysctl_ctx, SYSCTL_CHILDREN(sc->sysctl_tree),
- OID_AUTO, "regs", CTLFLAG_RD, sc, 0, patm_sysctl_regs,
- "S", "registers") == NULL)
+ OID_AUTO, "regs", CTLTYPE_OPAQUE | CTLFLAG_RD, sc, 0,
+ patm_sysctl_regs, "S", "registers") == NULL)
goto fail;
if (SYSCTL_ADD_PROC(&sc->sysctl_ctx, SYSCTL_CHILDREN(sc->sysctl_tree),
- OID_AUTO, "tsq", CTLFLAG_RD, sc, 0, patm_sysctl_tsq,
- "S", "TSQ") == NULL)
+ OID_AUTO, "tsq", CTLTYPE_OPAQUE | CTLFLAG_RD, sc, 0,
+ patm_sysctl_tsq, "S", "TSQ") == NULL)
goto fail;
#endif
OpenPOWER on IntegriCloud