diff options
author | mdodd <mdodd@FreeBSD.org> | 2000-10-18 00:09:26 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2000-10-18 00:09:26 +0000 |
commit | 24266e7d45309efd1c81c7333b14496258e6b81b (patch) | |
tree | d18a2adbe56101a453d116149ba7e431e628dc4a /sys/dev/pdq | |
parent | 81e1a4e6535529c973204e2f279d1f16fea83879 (diff) | |
download | FreeBSD-src-24266e7d45309efd1c81c7333b14496258e6b81b.zip FreeBSD-src-24266e7d45309efd1c81c7333b14496258e6b81b.tar.gz |
Use appropriate resource management accessors instead of directly
referencing structure members.
Use rman_get_size() instead of end - start + 1.
Diffstat (limited to 'sys/dev/pdq')
-rw-r--r-- | sys/dev/pdq/if_fea.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pdq/if_fea.c b/sys/dev/pdq/if_fea.c index dc90631..229fd38 100644 --- a/sys/dev/pdq/if_fea.c +++ b/sys/dev/pdq/if_fea.c @@ -204,7 +204,7 @@ pdq_eisa_attach (dev) } m_addr = rman_get_start(mspace); - m_size = (rman_get_end(mspace) - rman_get_start(mspace)) + 1; + m_size = rman_get_size(mspace); sc->sc_iobase = (pdq_bus_ioport_t) rman_get_start(io); sc->sc_membase = (pdq_bus_memaddr_t) pmap_mapdev(m_addr, m_size); |