aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hptiop
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-09-27 08:51:18 +0000
committerEd Schouten <ed@FreeBSD.org>2008-09-27 08:51:18 +0000
commit6bfa9a2d66dd0e00182017d6741d44e54d0b2cca (patch)
treedd0035910760a440d495b23940f57a42ed24ca85 /sys/dev/hptiop
parent45cfb1dc538113eab50616b88da908b1bb728561 (diff)
Notes
Diffstat (limited to 'sys/dev/hptiop')
-rw-r--r--sys/dev/hptiop/hptiop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hptiop/hptiop.c b/sys/dev/hptiop/hptiop.c
index 88aa843c14bf..7218bc504425 100644
--- a/sys/dev/hptiop/hptiop.c
+++ b/sys/dev/hptiop/hptiop.c
@@ -178,7 +178,7 @@ static struct cdevsw hptiop_cdevsw = {
#define hba_from_dev(dev) ((struct hpt_iop_hba *)(dev)->si_drv1)
#else
#define hba_from_dev(dev) \
- ((struct hpt_iop_hba *)devclass_get_softc(hptiop_devclass, minor(dev)))
+ ((struct hpt_iop_hba *)devclass_get_softc(hptiop_devclass, dev2unit(dev)))
#endif
#define BUS_SPACE_WRT4_ITL(offset, value) bus_space_write_4(hba->bar0t,\