Forget that TAILQ's must be init'ed.

This commit is contained in:
Poul-Henning Kamp 1996-05-03 16:49:14 +00:00
parent ab76ac21e7
commit 0be33caa54
5 changed files with 10 additions and 5 deletions

View File

@ -40,7 +40,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* $Id: mcd.c,v 1.76 1996/04/07 17:32:14 bde Exp $ * $Id: mcd.c,v 1.77 1996/05/03 14:57:24 phk Exp $
*/ */
static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";
@ -279,6 +279,7 @@ int mcd_attach(struct isa_device *dev)
cd->iobase = dev->id_iobase; cd->iobase = dev->id_iobase;
cd->flags |= MCDINIT; cd->flags |= MCDINIT;
mcd_soft_reset(unit); mcd_soft_reset(unit);
TAILQ_INIT(&cd->head);
#ifdef NOTYET #ifdef NOTYET
/* wire controller for interrupts and dma */ /* wire controller for interrupts and dma */

View File

@ -41,7 +41,7 @@
*/ */
/* $Id: scd.c,v 1.18 1996/03/28 14:28:50 scrappy Exp $ */ /* $Id: scd.c,v 1.19 1996/05/03 14:57:25 phk Exp $ */
/* Please send any comments to micke@dynas.se */ /* Please send any comments to micke@dynas.se */
@ -244,6 +244,7 @@ int scd_attach(struct isa_device *dev)
cd->flags = SCDINIT; cd->flags = SCDINIT;
cd->audio_status = CD_AS_AUDIO_INVALID; cd->audio_status = CD_AS_AUDIO_INVALID;
TAILQ_INIT(&cd->head);
#ifdef DEVFS #ifdef DEVFS
#define SCD_UID 0 #define SCD_UID 0

View File

@ -337,7 +337,7 @@ static char MATCDVERSION[]="Version 1(26) 18-Oct-95";
static char MATCDCOPYRIGHT[] = "Matsushita CD-ROM driver, Copr. 1994,1995 Frank Durda IV"; static char MATCDCOPYRIGHT[] = "Matsushita CD-ROM driver, Copr. 1994,1995 Frank Durda IV";
/* The proceeding strings may not be changed*/ /* The proceeding strings may not be changed*/
/* $Id: matcd.c,v 1.15 1996/03/28 14:29:52 scrappy Exp $ */ /* $Id: matcd.c,v 1.16 1996/05/03 14:58:09 phk Exp $ */
/*--------------------------------------------------------------------------- /*---------------------------------------------------------------------------
Include declarations Include declarations
@ -1382,6 +1382,7 @@ matcd_attach(struct isa_device *dev)
#endif /*DEBUGPROBE*/ #endif /*DEBUGPROBE*/
printf("matcdc%d Host interface type %d\n", printf("matcdc%d Host interface type %d\n",
nextcontroller,iftype); nextcontroller,iftype);
TAILQ_INIT(&request_head[nextcontroller]);
for (cdrive=0; cdrive<4; cdrive++) { /*We're hunting drives...*/ for (cdrive=0; cdrive<4; cdrive++) { /*We're hunting drives...*/
zero_cmd(cmd); zero_cmd(cmd);
cmd[0]=NOP; /*A reasonably harmless command. cmd[0]=NOP; /*A reasonably harmless command.

View File

@ -40,7 +40,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* $Id: mcd.c,v 1.76 1996/04/07 17:32:14 bde Exp $ * $Id: mcd.c,v 1.77 1996/05/03 14:57:24 phk Exp $
*/ */
static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";
@ -279,6 +279,7 @@ int mcd_attach(struct isa_device *dev)
cd->iobase = dev->id_iobase; cd->iobase = dev->id_iobase;
cd->flags |= MCDINIT; cd->flags |= MCDINIT;
mcd_soft_reset(unit); mcd_soft_reset(unit);
TAILQ_INIT(&cd->head);
#ifdef NOTYET #ifdef NOTYET
/* wire controller for interrupts and dma */ /* wire controller for interrupts and dma */

View File

@ -41,7 +41,7 @@
*/ */
/* $Id: scd.c,v 1.18 1996/03/28 14:28:50 scrappy Exp $ */ /* $Id: scd.c,v 1.19 1996/05/03 14:57:25 phk Exp $ */
/* Please send any comments to micke@dynas.se */ /* Please send any comments to micke@dynas.se */
@ -244,6 +244,7 @@ int scd_attach(struct isa_device *dev)
cd->flags = SCDINIT; cd->flags = SCDINIT;
cd->audio_status = CD_AS_AUDIO_INVALID; cd->audio_status = CD_AS_AUDIO_INVALID;
TAILQ_INIT(&cd->head);
#ifdef DEVFS #ifdef DEVFS
#define SCD_UID 0 #define SCD_UID 0