From e318f4d6f4751dcfa25bac2326f75bc8004f8f07 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 5 Mar 2001 21:02:34 +0000 Subject: [PATCH] made comedi_report_boards() report the driver name if num_names == 0 --- comedi/drivers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/comedi/drivers.c b/comedi/drivers.c index 6d743c18..ba01066e 100644 --- a/comedi/drivers.c +++ b/comedi/drivers.c @@ -336,8 +336,6 @@ void comedi_report_boards(comedi_driver *driv) unsigned int i; void *name_ptr; - if(driv->num_names == 0) return; - printk("comedi: valid board names for %s driver are:\n", driv->driver_name); name_ptr=driv->board_name; @@ -346,6 +344,9 @@ void comedi_report_boards(comedi_driver *driv) printk(" %s\n", *(char **)name_ptr); name_ptr += driv->offset; } + + if(driv->num_names == 0) + printk(" %s\n", driv->driver_name); } /* helper functions for drivers */ -- 2.26.2