diff options
| author | Peter Grehan <grehan@FreeBSD.org> | 2003-12-12 09:54:39 +0000 |
|---|---|---|
| committer | Peter Grehan <grehan@FreeBSD.org> | 2003-12-12 09:54:39 +0000 |
| commit | 2abd35bc59125ff33e3d2acfb141e879a20bd035 (patch) | |
| tree | 8612ae824b483a7383a4a3eac0aac5b5cdfc7c91 /sys/dev/ofw | |
| parent | 099fe199017bd01fedf17ddc872cd2f5957fb080 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ofw')
| -rw-r--r-- | sys/dev/ofw/ofw_disk.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/ofw/ofw_disk.c b/sys/dev/ofw/ofw_disk.c index 86ec347fb3de..c37af75fe178 100644 --- a/sys/dev/ofw/ofw_disk.c +++ b/sys/dev/ofw/ofw_disk.c @@ -60,7 +60,6 @@ static int ofwd_probe(device_t); static int ofwd_attach(device_t); static device_method_t ofwd_methods[] = { - DEVMETHOD(device_identify, ofwd_identify), DEVMETHOD(device_probe, ofwd_probe), DEVMETHOD(device_attach, ofwd_attach), { 0, 0 } @@ -145,7 +144,8 @@ ofwd_probe(device_t dev) type = nexus_get_device_type(dev); - if (type == NULL || strcmp(type, "disk") != 0) + if (type == NULL || + (strcmp(type, "disk") != 0 && strcmp(type, "block") != 0)) return (ENXIO); device_set_desc(dev, "OpenFirmware disk"); @@ -183,8 +183,3 @@ ofwd_attach(device_t dev) return (0); } - -static void -ofwd_identify(driver_t *driver, device_t parent) -{ -} |
