Module Name: src
Committed By: martin
Date: Sat May 3 12:51:32 UTC 2014
Modified Files:
src/sys/arch/sparc64/dev: lpt_ebus.c
Log Message:
Also attach to devices named "parallel"
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/sparc64/dev/lpt_ebus.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc64/dev/lpt_ebus.c
diff -u src/sys/arch/sparc64/dev/lpt_ebus.c:1.23 src/sys/arch/sparc64/dev/lpt_ebus.c:1.24
--- src/sys/arch/sparc64/dev/lpt_ebus.c:1.23 Fri Jul 1 18:48:36 2011
+++ src/sys/arch/sparc64/dev/lpt_ebus.c Sat May 3 12:51:31 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: lpt_ebus.c,v 1.23 2011/07/01 18:48:36 dyoung Exp $ */
+/* $NetBSD: lpt_ebus.c,v 1.24 2014/05/03 12:51:31 martin Exp $ */
/*
* Copyright (c) 1999, 2000 Matthew R. Green
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lpt_ebus.c,v 1.23 2011/07/01 18:48:36 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lpt_ebus.c,v 1.24 2014/05/03 12:51:31 martin Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -53,13 +53,15 @@ CFATTACH_DECL_NEW(lpt_ebus, sizeof(struc
lpt_ebus_match, lpt_ebus_attach, NULL, NULL);
#define ROM_LPT_NAME "ecpp"
+#define ROM_LPT_NAME2 "parallel"
int
lpt_ebus_match(device_t parent, cfdata_t match, void *aux)
{
struct ebus_attach_args *ea = aux;
- if (strcmp(ea->ea_name, ROM_LPT_NAME) == 0)
+ if (strcmp(ea->ea_name, ROM_LPT_NAME) == 0
+ || strcmp(ea->ea_name, ROM_LPT_NAME2) == 0)
return (1);
return (0);