Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/acpi acpi: DMA: Use acpi_resource_parse_any to ...



details:   https://anonhg.NetBSD.org/src/rev/e3750c483363
branches:  trunk
changeset: 985076:e3750c483363
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Aug 07 18:40:45 2021 +0000

description:
acpi: DMA: Use acpi_resource_parse_any to parse _DMA resources

_DMA resources really should be marked ResourceProducer, so use
acpi_resource_parse_any to pick these up.

diffstat:

 sys/arch/arm/acpi/acpi_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ce62db663b8b -r e3750c483363 sys/arch/arm/acpi/acpi_machdep.c
--- a/sys/arch/arm/acpi/acpi_machdep.c  Sat Aug 07 18:39:40 2021 +0000
+++ b/sys/arch/arm/acpi/acpi_machdep.c  Sat Aug 07 18:40:45 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_machdep.c,v 1.23 2021/08/07 16:18:42 thorpej Exp $ */
+/* $NetBSD: acpi_machdep.c,v 1.24 2021/08/07 18:40:45 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "pci.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.23 2021/08/07 16:18:42 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.24 2021/08/07 18:40:45 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -417,7 +417,7 @@
                return;
        }
 
-       rv = acpi_resource_parse(sc->sc_dev, module, "_DMA", &res,
+       rv = acpi_resource_parse_any(sc->sc_dev, module, "_DMA", &res,
            &acpi_resource_parse_ops_quiet);
        if (ACPI_FAILURE(rv)) {
                aprint_error_dev(sc->sc_dev,



Home | Main Index | Thread Index | Old Index