diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-02-21 19:00:48 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-02-21 19:00:48 +0000 |
| commit | 2c6b49f6affb5cd2f304ef1b0210d45d9da380db (patch) | |
| tree | 0a783f7251946cbeba07417df9c459d72a6aa14e /sys/dev/ida | |
| parent | a9f39f60e00f584efee7cf645508bc8baa5d81ce (diff) | |
Notes
Diffstat (limited to 'sys/dev/ida')
| -rw-r--r-- | sys/dev/ida/ida_disk.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c index e93dce8ba7bfb..f4265c9960c91 100644 --- a/sys/dev/ida/ida_disk.c +++ b/sys/dev/ida/ida_disk.c @@ -61,7 +61,7 @@ static int idad_detach(device_t dev); static d_open_t idad_open; static d_close_t idad_close; static d_strategy_t idad_strategy; -static d_dump_t idad_dump; +static dumper_t idad_dump; #define IDAD_CDEV_MAJOR 109 @@ -180,13 +180,15 @@ bad: } static int -idad_dump(dev_t dev, void *virtual, vm_offset_t physical, off_t offset, size_t length) +idad_dump(void *arg, void *virtual, vm_offset_t physical, off_t offset, size_t length) { struct idad_softc *drv; int error = 0; + struct disk *dp; - drv = idad_getsoftc(dev); + dp = arg; + drv = idad_getsoftc(dp->d_dev); if (drv == NULL) return (ENXIO); |
