Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't

hurt the driver portability to 3.x too much for where drivers are shared.
This commit is contained in:
Peter Wemm 1999-04-24 20:24:02 +00:00
parent 57a6bf02a3
commit 38a67d80b4
2 changed files with 10 additions and 2 deletions

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_oltr.c,v 1.2 1999/03/10 17:45:26 julian Exp $
* $Id: if_oltr.c,v 1.3 1999/04/21 07:02:19 peter Exp $
*/
@ -259,7 +259,11 @@ static struct pci_device oltr_device = {
NULL
};
#ifndef COMPAT_PCI_DRIVER
DATA_SET(pcidevice_set, oltr_device);
#else
COMPAT_PCI_DRIVER(oltr_pci, oltr_device);
#endif /* COMPAT_PCI_DRIVER */
int pci_cards = 0;
#endif /* NPCI */

View File

@ -27,7 +27,7 @@
* i4b_isic_pci.c - PCI bus interface
* ==================================
*
* $Id: i4b_isic_pci.c,v 1.11 1999/02/17 14:31:42 hm Exp $
* $Id: i4b_isic_pci.c,v 1.3 1999/03/07 16:08:16 hm Exp $
*
* last edit-date: [Wed Feb 17 15:19:44 1999]
*
@ -102,7 +102,11 @@ static struct pci_device i4b_pci_driver = {
NULL
};
#ifndef COMPAT_PCI_DRIVER
DATA_SET (pcidevice_set, i4b_pci_driver);
#else
COMPAT_PCI_DRIVER (isic_pci, i4b_pci_driver);
#endif /* COMPAT_PCI_DRIVER */
static void isic_pci_intr_sc(struct isic_softc *sc);