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 Second handle to bus_space_read_* is th...
details: https://anonhg.NetBSD.org/src/rev/0bb052ff6f8e
branches: trunk
changeset: 328797:0bb052ff6f8e
user: reinoud <reinoud%NetBSD.org@localhost>
date: Fri Apr 18 11:37:17 2014 +0000
description:
Second handle to bus_space_read_* is the bus_space_handle, not a repeat of the
bus_space_tag
diffstat:
sys/arch/arm/samsung/sscom.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r b781bb3b2fd4 -r 0bb052ff6f8e sys/arch/arm/samsung/sscom.c
--- a/sys/arch/arm/samsung/sscom.c Fri Apr 18 06:59:32 2014 +0000
+++ b/sys/arch/arm/samsung/sscom.c Fri Apr 18 11:37:17 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sscom.c,v 1.3 2014/04/16 21:28:51 reinoud Exp $ */
+/* $NetBSD: sscom.c,v 1.4 2014/04/18 11:37:17 reinoud Exp $ */
/*
* Copyright (c) 2002, 2003 Fujitsu Component Limited
@@ -98,7 +98,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sscom.c,v 1.3 2014/04/16 21:28:51 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sscom.c,v 1.4 2014/04/18 11:37:17 reinoud Exp $");
#include "opt_sscom.h"
#include "opt_ddb.h"
@@ -339,8 +339,8 @@
sscomstatus(struct sscom_softc *sc, const char *str)
{
struct tty *tp = sc->sc_tty;
- int umstat = bus_space_read_1(sc->sc_iot, sc->sc_iot, SSCOM_UMSTAT);
- int umcon = bus_space_read_4(sc->sc_iot, sc->sc_iot, SSCOM_UMCON);
+ int umstat = bus_space_read_1(sc->sc_iot, sc->sc_ioh, SSCOM_UMSTAT);
+ int umcon = bus_space_read_4(sc->sc_iot, sc->sc_ioh, SSCOM_UMCON);
printf("%s: %s %sclocal %sdcd %sts_carr_on %sdtr %stx_stopped\n",
device_xname(sc->sc_dev), str,
Home |
Main Index |
Thread Index |
Old Index