Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/ralink Explicitly size the regmap array.
details: https://anonhg.NetBSD.org/src/rev/dcd4cdbce273
branches: trunk
changeset: 995963:dcd4cdbce273
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Jan 12 15:44:08 2019 +0000
description:
Explicitly size the regmap array.
diffstat:
sys/arch/mips/ralink/ralink_com.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d1d279130bcb -r dcd4cdbce273 sys/arch/mips/ralink/ralink_com.c
--- a/sys/arch/mips/ralink/ralink_com.c Sat Jan 12 15:16:51 2019 +0000
+++ b/sys/arch/mips/ralink/ralink_com.c Sat Jan 12 15:44:08 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ralink_com.c,v 1.8 2019/01/11 23:10:40 thorpej Exp $ */
+/* $NetBSD: ralink_com.c,v 1.9 2019/01/12 15:44:08 thorpej Exp $ */
/*-
* Copyright (c) 2011 CradlePoint Technology, Inc.
* All rights reserved.
@@ -130,7 +130,7 @@
/* ralink_com.c -- Ralink 3052 uart console driver */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ralink_com.c,v 1.8 2019/01/11 23:10:40 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ralink_com.c,v 1.9 2019/01/12 15:44:08 thorpej Exp $");
#include "locators.h"
#include <sys/param.h>
@@ -367,7 +367,7 @@
com_attach_subr(sc);
}
-static const bus_size_t ralink_com_regmap[] = {
+static const bus_size_t ralink_com_regmap[COM_REGMAP_NENTRIES] = {
[COM_REG_RXDATA] = RA_UART_RBR,
[COM_REG_TXDATA] = RA_UART_TBR,
[COM_REG_DLBL] = RA_UART_DLL,
Home |
Main Index |
Thread Index |
Old Index