diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-03-24 19:54:14 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-03-24 19:54:14 +0000 |
commit | 700c1cb2ba67302317aeb58b12bde74d7d77322e (patch) | |
tree | 2d0566a56f7cbbc299d9e082bc00ae1a3c1ef505 /sys/i386/bios | |
parent | 1016075ea8c52f20ce2e2ed637d6c401eee592ad (diff) | |
download | FreeBSD-src-700c1cb2ba67302317aeb58b12bde74d7d77322e.zip FreeBSD-src-700c1cb2ba67302317aeb58b12bde74d7d77322e.tar.gz |
Correct a mis-merge.
Noticed by: johan
Diffstat (limited to 'sys/i386/bios')
-rw-r--r-- | sys/i386/bios/smapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/bios/smapi.c b/sys/i386/bios/smapi.c index 88f3687..891b638 100644 --- a/sys/i386/bios/smapi.c +++ b/sys/i386/bios/smapi.c @@ -53,7 +53,7 @@ #define SMAPI_SIG "$SMB" #define RES2HDR(res) ((struct smapi_bios_header *)rman_get_virtual(res)) -#define ADDR2HDR(res) ((struct smapi_bios_header *)BIOS_PADDRTOVADDR(addr)) +#define ADDR2HDR(addr) ((struct smapi_bios_header *)BIOS_PADDRTOVADDR(addr)) struct smapi_softc { dev_t cdev; @@ -171,7 +171,7 @@ smapi_identify (driver_t *driver, device_t parent) SMAPI_STEP, SMAPI_OFF); if (addr != 0) { rid = 0; - length = ADDR2HDR(res)->length; + length = ADDR2HDR(addr)->length; child = BUS_ADD_CHILD(parent, 0, "smapi", -1); device_set_driver(child, driver); |