don't abuse cf_unit.

This commit is contained in:
chs 2001-05-27 06:19:39 +00:00
parent fadbc7d451
commit d8e8c90c8a

View File

@ -1,4 +1,4 @@
/* $NetBSD: eeprom.c,v 1.18 1998/02/05 04:56:36 gwr Exp $ */ /* $NetBSD: eeprom.c,v 1.19 2001/05/27 06:19:39 chs Exp $ */
/*- /*-
* Copyright (c) 1996 The NetBSD Foundation, Inc. * Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -86,8 +86,8 @@ eeprom_match(parent, cf, args)
{ {
struct confargs *ca = args; struct confargs *ca = args;
/* This driver only supports one unit. */ /* This driver only supports one instance. */
if (cf->cf_unit != 0) if (eeprom_va != NULL)
return (0); return (0);
if (bus_peek(ca->ca_bustype, ca->ca_paddr, 1) == -1) if (bus_peek(ca->ca_bustype, ca->ca_paddr, 1) == -1)