Index: arch/socppc/dev/wdc_mainbus.c |
=================================================================== |
RCS file: /home/mdempsky/anoncvs/cvs/src/sys/arch/socppc/dev/wdc_mainbus.c,v |
retrieving revision 1.1 |
diff -u -r1.1 wdc_mainbus.c |
--- arch/socppc/dev/wdc_mainbus.c 6 Sep 2009 20:09:34 -0000 1.1 |
+++ arch/socppc/dev/wdc_mainbus.c 8 May 2011 21:13:29 -0000 |
@@ -132,10 +132,9 @@ |
chp->channel = 0; |
chp->wdc = &sc->sc_wdcdev; |
- chp->ch_queue = malloc(sizeof(struct channel_queue), M_DEVBUF, |
- M_NOWAIT); |
+ chp->ch_queue = wdc_alloc_queue(); |
if (chp->ch_queue == NULL) { |
- printf("%s: can't allocate memory for command queue\n", |
+ printf("%s: cannot allocate channel queue\n", |
self->dv_xname); |
/* XXX disestablish interrupt */ |
return; |