26c26
< * $FreeBSD: head/sys/dev/ida/ida_disk.c 124539 2004-01-15 04:05:47Z mdodd $
---
> * $FreeBSD: head/sys/dev/ida/ida_disk.c 125975 2004-02-18 21:36:53Z phk $
206,215c206,218
< drv->disk.d_strategy = idad_strategy;
< drv->disk.d_name = "idad";
< drv->disk.d_dump = idad_dump;
< drv->disk.d_sectorsize = drv->secsize;
< drv->disk.d_mediasize = (off_t)drv->secperunit * drv->secsize;
< drv->disk.d_fwsectors = drv->sectors;
< drv->disk.d_fwheads = drv->heads;
< drv->disk.d_drv1 = drv;
< drv->disk.d_maxsize = DFLTPHYS; /* XXX guess? */
< disk_create(drv->unit, &drv->disk, 0, NULL, NULL);
---
> drv->disk = disk_alloc();
> drv->disk->d_strategy = idad_strategy;
> drv->disk->d_name = "idad";
> drv->disk->d_dump = idad_dump;
> drv->disk->d_sectorsize = drv->secsize;
> drv->disk->d_mediasize = (off_t)drv->secperunit * drv->secsize;
> drv->disk->d_fwsectors = drv->sectors;
> drv->disk->d_fwheads = drv->heads;
> drv->disk->d_drv1 = drv;
> drv->disk->d_maxsize = DFLTPHYS; /* XXX guess? */
> drv->disk->d_unit = drv->unit;
> drv->disk->d_flags = DISKFLAG_NEEDSGIANT;
> disk_create(drv->disk, DISK_VERSION);
226c229
< disk_destroy(&drv->disk);
---
> disk_destroy(drv->disk);
< * $FreeBSD: head/sys/dev/ida/ida_disk.c 124539 2004-01-15 04:05:47Z mdodd $
---
> * $FreeBSD: head/sys/dev/ida/ida_disk.c 125975 2004-02-18 21:36:53Z phk $
206,215c206,218
< drv->disk.d_strategy = idad_strategy;
< drv->disk.d_name = "idad";
< drv->disk.d_dump = idad_dump;
< drv->disk.d_sectorsize = drv->secsize;
< drv->disk.d_mediasize = (off_t)drv->secperunit * drv->secsize;
< drv->disk.d_fwsectors = drv->sectors;
< drv->disk.d_fwheads = drv->heads;
< drv->disk.d_drv1 = drv;
< drv->disk.d_maxsize = DFLTPHYS; /* XXX guess? */
< disk_create(drv->unit, &drv->disk, 0, NULL, NULL);
---
> drv->disk = disk_alloc();
> drv->disk->d_strategy = idad_strategy;
> drv->disk->d_name = "idad";
> drv->disk->d_dump = idad_dump;
> drv->disk->d_sectorsize = drv->secsize;
> drv->disk->d_mediasize = (off_t)drv->secperunit * drv->secsize;
> drv->disk->d_fwsectors = drv->sectors;
> drv->disk->d_fwheads = drv->heads;
> drv->disk->d_drv1 = drv;
> drv->disk->d_maxsize = DFLTPHYS; /* XXX guess? */
> drv->disk->d_unit = drv->unit;
> drv->disk->d_flags = DISKFLAG_NEEDSGIANT;
> disk_create(drv->disk, DISK_VERSION);
226c229
< disk_destroy(&drv->disk);
---
> disk_destroy(drv->disk);