From 9ecc4733581cabf97148a5bbea46219439f54063 Mon Sep 17 00:00:00 2001 From: gdamore Date: Thu, 11 May 2006 06:35:55 +0000 Subject: [PATCH] A zero mask means that the device should always be enabled. --- sys/arch/mips/atheros/arbus.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/arch/mips/atheros/arbus.c b/sys/arch/mips/atheros/arbus.c index 310f796c03fd..c44335182e4d 100644 --- a/sys/arch/mips/atheros/arbus.c +++ b/sys/arch/mips/atheros/arbus.c @@ -1,4 +1,4 @@ -/* $Id: arbus.c,v 1.2 2006/04/02 05:41:32 gdamore Exp $ */ +/* $Id: arbus.c,v 1.3 2006/05/11 06:35:55 gdamore Exp $ */ /* * Copyright (c) 2006 Urbana-Champaign Independent Media Center. * Copyright (c) 2006 Garrett D'Amore. @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: arbus.c,v 1.2 2006/04/02 05:41:32 gdamore Exp $"); +__KERNEL_RCSID(0, "$NetBSD: arbus.c,v 1.3 2006/05/11 06:35:55 gdamore Exp $"); #include "locators.h" #include @@ -195,7 +195,8 @@ arbus_attach(struct device *parent, struct device *self, void *aux) arbus_init(); for (i = 0; arbus_devices[i].name; i++) { - if ((arbus_devices[i].mask & info->ab_config) == 0) { + if (arbus_devices[i].mask && + ((arbus_devices[i].mask & info->ab_config) == 0)) { continue; } aa.aa_name = arbus_devices[i].name;