summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2013-12-08 11:32:51 +0000
committermartin <martin@NetBSD.org>2013-12-08 11:32:51 +0000
commit59efacce9e3c2ffcd207888f846bbbf1c9013ad6 (patch)
treeb4c81cec62df3f0181a4a1f135c31d0992cf5570 /sys/dev
parente0647bff61f141ab29065f6fb82fa4045408696e (diff)
Cosmectic: use the same define in all places when referencing the BAR.
No functional change.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_athn_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_athn_pci.c b/sys/dev/pci/if_athn_pci.c
index 4c6b99df0d5..d6607a61599 100644
--- a/sys/dev/pci/if_athn_pci.c
+++ b/sys/dev/pci/if_athn_pci.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_athn_pci.c,v 1.8 2013/04/21 19:59:40 msaitoh Exp $ */
+/* $NetBSD: if_athn_pci.c,v 1.9 2013/12/08 11:32:51 martin Exp $ */
/* $OpenBSD: if_athn_pci.c,v 1.11 2011/01/08 10:02:32 damien Exp $ */
/*-
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_athn_pci.c,v 1.8 2013/04/21 19:59:40 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_athn_pci.c,v 1.9 2013/12/08 11:32:51 martin Exp $");
#include "opt_inet.h"
@@ -189,7 +189,7 @@ athn_pci_attach(device_t parent, device_t self, void *aux)
(int)memtype);
goto fail;
}
- error = pci_mapreg_map(pa, PCI_MAPREG_START, memtype, 0, &psc->psc_iot,
+ error = pci_mapreg_map(pa, ATHN_PCI_MMBA, memtype, 0, &psc->psc_iot,
&psc->psc_ioh, NULL, &psc->psc_mapsz);
if (error != 0) {
aprint_error_dev(self, "cannot map register space\n");