Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/samsung bus_width is not used, so don't fetch i...
details: https://anonhg.NetBSD.org/src/rev/3f72878ea1da
branches: trunk
changeset: 345487:3f72878ea1da
user: dholland <dholland%NetBSD.org@localhost>
date: Mon May 30 16:38:35 2016 +0000
description:
bus_width is not used, so don't fetch it; but do leave the logic in place
commented out so it's there if anyone wants it in the future.
PR 50594 from David Binderman.
diffstat:
sys/arch/arm/samsung/exynos_dwcmmc.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r 3015f9d62d83 -r 3f72878ea1da sys/arch/arm/samsung/exynos_dwcmmc.c
--- a/sys/arch/arm/samsung/exynos_dwcmmc.c Mon May 30 16:35:35 2016 +0000
+++ b/sys/arch/arm/samsung/exynos_dwcmmc.c Mon May 30 16:38:35 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exynos_dwcmmc.c,v 1.2 2015/12/27 20:49:01 jmcneill Exp $ */
+/* $NetBSD: exynos_dwcmmc.c,v 1.3 2016/05/30 16:38:35 dholland Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exynos_dwcmmc.c,v 1.2 2015/12/27 20:49:01 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exynos_dwcmmc.c,v 1.3 2016/05/30 16:38:35 dholland Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -84,7 +84,7 @@
char intrstr[128];
bus_addr_t addr;
bus_size_t size;
- u_int bus_width, ciu_div, fifo_depth;
+ u_int ciu_div, fifo_depth;
int error;
if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) {
@@ -92,9 +92,9 @@
return;
}
- if (of_getprop_uint32(phandle, "bus-width", &bus_width)) {
- bus_width = 4;
- }
+ //if (of_getprop_uint32(phandle, "bus-width", &bus_width)) {
+ // bus_width = 4;
+ //}
if (of_getprop_uint32(phandle, "fifo-depth", &fifo_depth)) {
fifo_depth = 64;
}
Home |
Main Index |
Thread Index |
Old Index