Use device_is_a().

This commit is contained in:
thorpej 2006-03-28 17:23:21 +00:00
parent 11c16d3717
commit 5e2428ba9d
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs.c,v 1.11 2005/12/11 12:19:16 christos Exp $ */
/* $NetBSD: zs.c,v 1.12 2006/03/28 17:23:21 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.11 2005/12/11 12:19:16 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.12 2006/03/28 17:23:21 thorpej Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -248,8 +248,7 @@ zs_attach(struct zsc_softc *zsc, struct zsdevice *zsd, int pri)
* sunkbd and sunms line disciplines.
*/
if (child
&& (!strcmp(child->dv_cfdata->cf_name,
"zstty"))) {
&& device_is_a(child, "zstty")) {
struct kbd_ms_tty_attach_args kma;
struct zstty_softc {
/* The following are the only fields we need here */