Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/nvidia Remove two unused bs handles



details:   https://anonhg.NetBSD.org/src/rev/85c37acb30c6
branches:  trunk
changeset: 433632:85c37acb30c6
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Sep 24 22:22:16 2018 +0000

description:
Remove two unused bs handles

diffstat:

 sys/arch/arm/nvidia/tegra_soc.c |  12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diffs (46 lines):

diff -r c306d8daeb97 -r 85c37acb30c6 sys/arch/arm/nvidia/tegra_soc.c
--- a/sys/arch/arm/nvidia/tegra_soc.c   Mon Sep 24 21:58:11 2018 +0000
+++ b/sys/arch/arm/nvidia/tegra_soc.c   Mon Sep 24 22:22:16 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_soc.c,v 1.15 2018/04/01 04:35:04 ryo Exp $ */
+/* $NetBSD: tegra_soc.c,v 1.16 2018/09/24 22:22:16 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_soc.c,v 1.15 2018/04/01 04:35:04 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_soc.c,v 1.16 2018/09/24 22:22:16 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -47,10 +47,8 @@
 #include <arm/nvidia/tegra_mcreg.h>
 #include <arm/nvidia/tegra_var.h>
 
-bus_space_handle_t tegra_host1x_bsh;
 bus_space_handle_t tegra_ppsb_bsh;
 bus_space_handle_t tegra_apb_bsh;
-bus_space_handle_t tegra_ahb_a2_bsh;
 
 void
 tegra_bootstrap(void)
@@ -58,16 +56,10 @@
        extern struct bus_space arm_generic_bs_tag;
        bus_space_tag_t bst = &arm_generic_bs_tag;
 
-       if (bus_space_map(bst, TEGRA_HOST1X_BASE, TEGRA_HOST1X_SIZE, 0,
-           &tegra_host1x_bsh) != 0)
-               panic("couldn't map HOST1X");
        if (bus_space_map(bst, TEGRA_PPSB_BASE, TEGRA_PPSB_SIZE, 0,
            &tegra_ppsb_bsh) != 0)
                panic("couldn't map PPSB");
        if (bus_space_map(bst, TEGRA_APB_BASE, TEGRA_APB_SIZE, 0,
            &tegra_apb_bsh) != 0)
                panic("couldn't map APB");
-       if (bus_space_map(bst, TEGRA_AHB_A2_BASE, TEGRA_AHB_A2_SIZE, 0,
-           &tegra_ahb_a2_bsh) != 0)
-               panic("couldn't map AHB A2");
 }



Home | Main Index | Thread Index | Old Index