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
839246840d
commit
b498fd54d9
@ -903,6 +903,7 @@ pci_compat_attach(device_t dev)
|
|||||||
*dvp->pd_count = unit;
|
*dvp->pd_count = unit;
|
||||||
if (dvp->pd_attach)
|
if (dvp->pd_attach)
|
||||||
dvp->pd_attach(cfg, unit);
|
dvp->pd_attach(cfg, unit);
|
||||||
|
device_printf(dev, "driver is using old-style compatability shims\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,6 +259,7 @@ isa_compat_attach(device_t dev)
|
|||||||
printf("isa_compat_attach: failed to setup intr: %d\n",
|
printf("isa_compat_attach: failed to setup intr: %d\n",
|
||||||
error);
|
error);
|
||||||
}
|
}
|
||||||
|
device_printf(dev, "driver is using old-style compatability shims\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -903,6 +903,7 @@ pci_compat_attach(device_t dev)
|
|||||||
*dvp->pd_count = unit;
|
*dvp->pd_count = unit;
|
||||||
if (dvp->pd_attach)
|
if (dvp->pd_attach)
|
||||||
dvp->pd_attach(cfg, unit);
|
dvp->pd_attach(cfg, unit);
|
||||||
|
device_printf(dev, "driver is using old-style compatability shims\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user