mirror of
https://github.com/opnsense/src.git
synced 2026-04-25 08:07:28 -04:00
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:
parent
8f670c3d88
commit
cebf86fa3f
3 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue