diff options
author | phk <phk@FreeBSD.org> | 2003-09-26 10:41:44 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-09-26 10:41:44 +0000 |
commit | 30f60296f2c4a04dd8a71dee1209c14403ee5503 (patch) | |
tree | 8795ecabad50a2e053eed8460ee25684d138a2af /sys/pc98 | |
parent | 6e7e1fbcfa621fca4d4d70560a1b2850c1f2c800 (diff) | |
download | FreeBSD-src-30f60296f2c4a04dd8a71dee1209c14403ee5503.zip FreeBSD-src-30f60296f2c4a04dd8a71dee1209c14403ee5503.tar.gz |
Change fb_attach() and fb_detach() to take a integer unit number rather
than a dev_t.
All of the dev_t's passed were bogusly created with makedev()
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/cbus/gdc.c | 2 | ||||
-rw-r--r-- | sys/pc98/pc98/pc98gdc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/pc98/cbus/gdc.c b/sys/pc98/cbus/gdc.c index 9ef5549..6a06c40 100644 --- a/sys/pc98/cbus/gdc.c +++ b/sys/pc98/cbus/gdc.c @@ -165,7 +165,7 @@ gdc_attach(device_t dev) #ifdef FB_INSTALL_CDEV /* attach a virtual frame buffer device */ - error = fb_attach(makedev(0, GDC_MKMINOR(device_get_unit(dev))), + error = fb_attach(GDC_MKMINOR(device_get_unit(dev), sc->adp, &gdc_cdevsw); if (error) { gdc_release_resource(dev); diff --git a/sys/pc98/pc98/pc98gdc.c b/sys/pc98/pc98/pc98gdc.c index 9ef5549..6a06c40 100644 --- a/sys/pc98/pc98/pc98gdc.c +++ b/sys/pc98/pc98/pc98gdc.c @@ -165,7 +165,7 @@ gdc_attach(device_t dev) #ifdef FB_INSTALL_CDEV /* attach a virtual frame buffer device */ - error = fb_attach(makedev(0, GDC_MKMINOR(device_get_unit(dev))), + error = fb_attach(GDC_MKMINOR(device_get_unit(dev), sc->adp, &gdc_cdevsw); if (error) { gdc_release_resource(dev); |