Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/dev Also attach to devices named "parallel"



details:   https://anonhg.NetBSD.org/src/rev/40ee93e5c56a
branches:  trunk
changeset: 329062:40ee93e5c56a
user:      martin <martin%NetBSD.org@localhost>
date:      Sat May 03 12:51:31 2014 +0000

description:
Also attach to devices named "parallel"

diffstat:

 sys/arch/sparc64/dev/lpt_ebus.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 6bbc8464f216 -r 40ee93e5c56a sys/arch/sparc64/dev/lpt_ebus.c
--- a/sys/arch/sparc64/dev/lpt_ebus.c   Sat May 03 12:50:01 2014 +0000
+++ b/sys/arch/sparc64/dev/lpt_ebus.c   Sat May 03 12:51:31 2014 +0000
@@ -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 @@
     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);



Home | Main Index | Thread Index | Old Index