Put a FYI in the compatability shims so that people are aware that they

are using an old unconverted driver.  Most (if not all) of the drivers
for common hardware are newbus these days.  However, we don't want
to encourage people to take the easy way out and write new drivers
using the shims.  This is just passive "encouragement".

Reviewed by:	phk
This commit is contained in:
peter 2000-01-29 15:37:36 +00:00
parent 839246840d
commit b498fd54d9
3 changed files with 3 additions and 0 deletions

View File

@ -903,6 +903,7 @@ pci_compat_attach(device_t dev)
*dvp->pd_count = unit;
if (dvp->pd_attach)
dvp->pd_attach(cfg, unit);
device_printf(dev, "driver is using old-style compatability shims\n");
return 0;
}

View File

@ -259,6 +259,7 @@ isa_compat_attach(device_t dev)
printf("isa_compat_attach: failed to setup intr: %d\n",
error);
}
device_printf(dev, "driver is using old-style compatability shims\n");
return 0;
}

View File

@ -903,6 +903,7 @@ pci_compat_attach(device_t dev)
*dvp->pd_count = unit;
if (dvp->pd_attach)
dvp->pd_attach(cfg, unit);
device_printf(dev, "driver is using old-style compatability shims\n");
return 0;
}