29c29
< __FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_disk.c 125435 2004-02-04 12:52:57Z grehan $");
---
> __FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_disk.c 125975 2004-02-18 21:36:53Z phk $");
51c51
< struct disk ofwd_disk;
---
> struct disk *ofwd_disk;
206,214c206,217
< sc->ofwd_disk.d_strategy = ofwd_strategy;
< sc->ofwd_disk.d_name = "ofwd";
< sc->ofwd_disk.d_sectorsize = OFWD_BLOCKSIZE;
< sc->ofwd_disk.d_mediasize = (off_t)33554432 * OFWD_BLOCKSIZE;
< sc->ofwd_disk.d_fwsectors = 0;
< sc->ofwd_disk.d_fwheads = 0;
< sc->ofwd_disk.d_drv1 = sc;
< sc->ofwd_disk.d_maxsize = PAGE_SIZE;
< disk_create(device_get_unit(dev), &sc->ofwd_disk, 0, NULL, NULL);
---
> sc->ofwd_disk = disk_alloc();
> sc->ofwd_disk->d_strategy = ofwd_strategy;
> sc->ofwd_disk->d_name = "ofwd";
> sc->ofwd_disk->d_sectorsize = OFWD_BLOCKSIZE;
> sc->ofwd_disk->d_mediasize = (off_t)33554432 * OFWD_BLOCKSIZE;
> sc->ofwd_disk->d_fwsectors = 0;
> sc->ofwd_disk->d_fwheads = 0;
> sc->ofwd_disk->d_drv1 = sc;
> sc->ofwd_disk->d_maxsize = PAGE_SIZE;
> sc->ofwd_disk->d_unit = device_get_unit(dev);
> sc->ofwd_disk->d_flags = DISKFLAG_NEEDSGIANT;
> disk_create(sc->ofwd_disk, DISK_VERSION);
< __FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_disk.c 125435 2004-02-04 12:52:57Z grehan $");
---
> __FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_disk.c 125975 2004-02-18 21:36:53Z phk $");
51c51
< struct disk ofwd_disk;
---
> struct disk *ofwd_disk;
206,214c206,217
< sc->ofwd_disk.d_strategy = ofwd_strategy;
< sc->ofwd_disk.d_name = "ofwd";
< sc->ofwd_disk.d_sectorsize = OFWD_BLOCKSIZE;
< sc->ofwd_disk.d_mediasize = (off_t)33554432 * OFWD_BLOCKSIZE;
< sc->ofwd_disk.d_fwsectors = 0;
< sc->ofwd_disk.d_fwheads = 0;
< sc->ofwd_disk.d_drv1 = sc;
< sc->ofwd_disk.d_maxsize = PAGE_SIZE;
< disk_create(device_get_unit(dev), &sc->ofwd_disk, 0, NULL, NULL);
---
> sc->ofwd_disk = disk_alloc();
> sc->ofwd_disk->d_strategy = ofwd_strategy;
> sc->ofwd_disk->d_name = "ofwd";
> sc->ofwd_disk->d_sectorsize = OFWD_BLOCKSIZE;
> sc->ofwd_disk->d_mediasize = (off_t)33554432 * OFWD_BLOCKSIZE;
> sc->ofwd_disk->d_fwsectors = 0;
> sc->ofwd_disk->d_fwheads = 0;
> sc->ofwd_disk->d_drv1 = sc;
> sc->ofwd_disk->d_maxsize = PAGE_SIZE;
> sc->ofwd_disk->d_unit = device_get_unit(dev);
> sc->ofwd_disk->d_flags = DISKFLAG_NEEDSGIANT;
> disk_create(sc->ofwd_disk, DISK_VERSION);