From 443c0fbcbf7dbcd2e42bb142d435e3c5c656a9e6 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Tue, 1 Jun 2010 03:09:42 +0000 Subject: Fix some code hidden in DIAGNOSTIC. --- sys/arch/beagle/dev/ommmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/beagle/dev/ommmc.c b/sys/arch/beagle/dev/ommmc.c index ef659605ca6..39f8c4740cb 100644 --- a/sys/arch/beagle/dev/ommmc.c +++ b/sys/arch/beagle/dev/ommmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ommmc.c,v 1.5 2010/02/14 09:08:32 mk Exp $ */ +/* $OpenBSD: ommmc.c,v 1.6 2010/06/01 03:09:41 drahn Exp $ */ /* * Copyright (c) 2009 Dale Rahn @@ -746,7 +746,7 @@ ommmc_bus_clock(sdmmc_chipset_handle_t sch, int freq) #ifdef DIAGNOSTIC /* Must not stop the clock if commands are in progress. */ - if (ISSET(HREAD4(sc, SDMMCH_PSTATE), MMCHS_PSTATE_CMDI|MMCHS_PSTATE_DAT) + if (ISSET(HREAD4(sc, MMCHS_PSTATE), MMCHS_PSTATE_CMDI|MMCHS_PSTATE_DATI) && ommmc_card_detect(sc)) printf("ommmc_sdclk_frequency_select: command in progress\n"); #endif -- cgit v1.2.3