Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/xilinx Remove unnecessary code in zynq_platform...



details:   https://anonhg.NetBSD.org/src/rev/530d46827eb2
branches:  trunk
changeset: 372009:530d46827eb2
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Oct 25 22:59:10 2022 +0000

description:
Remove unnecessary code in zynq_platform_device_register

diffstat:

 sys/arch/arm/xilinx/zynq_platform.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r c0254ea8b0f5 -r 530d46827eb2 sys/arch/arm/xilinx/zynq_platform.c
--- a/sys/arch/arm/xilinx/zynq_platform.c       Tue Oct 25 22:52:48 2022 +0000
+++ b/sys/arch/arm/xilinx/zynq_platform.c       Tue Oct 25 22:59:10 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zynq_platform.c,v 1.5 2021/04/24 23:36:29 thorpej Exp $        */
+/*     $NetBSD: zynq_platform.c,v 1.6 2022/10/25 22:59:10 jmcneill Exp $       */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 #include "arml2cc.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zynq_platform.c,v 1.5 2021/04/24 23:36:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zynq_platform.c,v 1.6 2022/10/25 22:59:10 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -127,12 +127,6 @@
 static void
 zynq_platform_device_register(device_t dev, void *aux)
 {
-       prop_dictionary_t dict = device_properties(dev);
-
-       if (device_is_a(dev, "arma9tmr")) {
-               prop_dictionary_set_uint32(dict, "frequency",
-                       ZYNQ_REF_FREQ / 4);
-       }
 }
 
 static u_int



Home | Main Index | Thread Index | Old Index