summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppc
diff options
context:
space:
mode:
authornsouch <nsouch@FreeBSD.org>2000-12-19 21:28:17 +0000
committernsouch <nsouch@FreeBSD.org>2000-12-19 21:28:17 +0000
commit9d3d001a03ec2fcb5fda9b5543ee2a0612cb1eda (patch)
tree8b5dd3c8607b34c26186df8fbad7df19a562f236 /sys/dev/ppc
parent287558d3689e4a18d986e2ec3e84d802fbca37a5 (diff)
downloadFreeBSD-src-9d3d001a03ec2fcb5fda9b5543ee2a0612cb1eda.zip
FreeBSD-src-9d3d001a03ec2fcb5fda9b5543ee2a0612cb1eda.tar.gz
Fix the PR. Getting a dma channel equal to 0 remains a problem though.
PR: i386/22568
Diffstat (limited to 'sys/dev/ppc')
-rw-r--r--sys/dev/ppc/ppc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c
index 259eed2..5d0f932 100644
--- a/sys/dev/ppc/ppc.c
+++ b/sys/dev/ppc/ppc.c
@@ -1657,7 +1657,7 @@ ppc_write(device_t dev, char *buf, int len, int how)
*/
if ((ppc->ppc_avm & PPB_ECP) && (ppc->ppc_registered)) {
- if (ppc->ppc_dmachan >= 0) {
+ if (ppc->ppc_dmachan > 0) {
/* byte mode, no intr, no DMA, dir=0, flush fifo
*/
OpenPOWER on IntegriCloud