Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/imx/fdt Remove FDT_INTR_MPSAFE flag.



details:   https://anonhg.NetBSD.org/src/rev/82701580e9a5
branches:  trunk
changeset: 967046:82701580e9a5
user:      hkenken <hkenken%NetBSD.org@localhost>
date:      Thu Nov 28 14:13:37 2019 +0000

description:
Remove FDT_INTR_MPSAFE flag.

diffstat:

 sys/arch/arm/imx/fdt/imx6_com.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 64dcc0f84b31 -r 82701580e9a5 sys/arch/arm/imx/fdt/imx6_com.c
--- a/sys/arch/arm/imx/fdt/imx6_com.c   Thu Nov 28 14:08:22 2019 +0000
+++ b/sys/arch/arm/imx/fdt/imx6_com.c   Thu Nov 28 14:13:37 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: imx6_com.c,v 1.1 2019/07/24 13:12:33 hkenken Exp $     */
+/*     $NetBSD: imx6_com.c,v 1.2 2019/11/28 14:13:37 hkenken Exp $     */
 /*-
  * Copyright (c) 2019 Genetec Corporation.  All rights reserved.
  * Written by Hashimoto Kenichi for Genetec Corporation.
@@ -25,7 +25,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imx6_com.c,v 1.1 2019/07/24 13:12:33 hkenken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imx6_com.c,v 1.2 2019/11/28 14:13:37 hkenken Exp $");
 
 #include "opt_fdt.h"
 #include "opt_imxuart.h"
@@ -99,9 +99,11 @@
        }
 
        sc->sc_ih = fdtbus_intr_establish(phandle, 0, IPL_SERIAL,
-           FDT_INTR_MPSAFE, imxuintr, sc);
-       if (sc->sc_ih == NULL)
+           0, imxuintr, sc);
+       if (sc->sc_ih == NULL) {
                aprint_error_dev(self, "failed to establish interrupt\n");
+               return;
+       }
 
        aprint_normal_dev(self, "interrupting on %s\n", intrstr);
 



Home | Main Index | Thread Index | Old Index