No need to check that that parent's cfdriver is ibus_cd.
This commit is contained in:
parent
7f33c64040
commit
98f612ef11
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: if_le_ibus.c,v 1.3 2002/01/08 17:10:28 chs Exp $ */
|
/* $NetBSD: if_le_ibus.c,v 1.4 2002/09/26 20:33:25 thorpej Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 1996 The Board of Trustees of The Leland Stanford
|
* Copyright 1996 The Board of Trustees of The Leland Stanford
|
||||||
|
@ -58,9 +58,6 @@ le_pmax_match(struct device *parent, struct cfdata *match, void *aux)
|
||||||
{
|
{
|
||||||
struct ibus_attach_args *d = aux;
|
struct ibus_attach_args *d = aux;
|
||||||
|
|
||||||
if (parent->dv_cfdata->cf_driver != &ibus_cd)
|
|
||||||
return (0);
|
|
||||||
|
|
||||||
if (strcmp("lance", d->ia_name) != 0)
|
if (strcmp("lance", d->ia_name) != 0)
|
||||||
return (0);
|
return (0);
|
||||||
return (1);
|
return (1);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: mcclock_ibus.c,v 1.8 2002/01/08 17:10:29 chs Exp $ */
|
/* $NetBSD: mcclock_ibus.c,v 1.9 2002/09/26 20:33:25 thorpej Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
|
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||||
__KERNEL_RCSID(0, "$NetBSD: mcclock_ibus.c,v 1.8 2002/01/08 17:10:29 chs Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: mcclock_ibus.c,v 1.9 2002/09/26 20:33:25 thorpej Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
|
@ -59,9 +59,6 @@ mcclock_ibus_match(parent, match, aux)
|
||||||
{
|
{
|
||||||
struct ibus_attach_args *ia = aux;
|
struct ibus_attach_args *ia = aux;
|
||||||
|
|
||||||
if (parent->dv_cfdata->cf_driver != &ibus_cd)
|
|
||||||
return (0);
|
|
||||||
|
|
||||||
if (strcmp("mc146818", ia->ia_name) != 0)
|
if (strcmp("mc146818", ia->ia_name) != 0)
|
||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue