Module Name: src
Committed By: jmcneill
Date: Tue Dec 30 12:36:06 UTC 2014
Modified Files:
src/sys/dev/ic: dwc_mmc.c
Log Message:
Fix inverted logic of card_detect_n bit, from FUKAUMI Naoki <[email protected]>.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ic/dwc_mmc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/dwc_mmc.c
diff -u src/sys/dev/ic/dwc_mmc.c:1.3 src/sys/dev/ic/dwc_mmc.c:1.4
--- src/sys/dev/ic/dwc_mmc.c:1.3 Mon Dec 29 23:58:25 2014
+++ src/sys/dev/ic/dwc_mmc.c Tue Dec 30 12:36:06 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_mmc.c,v 1.3 2014/12/29 23:58:25 jmcneill Exp $ */
+/* $NetBSD: dwc_mmc.c,v 1.4 2014/12/30 12:36:06 jmcneill Exp $ */
/*-
* Copyright (c) 2014 Jared D. McNeill <[email protected]>
@@ -29,7 +29,7 @@
#include "opt_dwc_mmc.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_mmc.c,v 1.3 2014/12/29 23:58:25 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_mmc.c,v 1.4 2014/12/30 12:36:06 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -338,7 +338,7 @@ dwc_mmc_card_detect(sdmmc_chipset_handle
uint32_t cdetect;
cdetect = MMC_READ(sc, DWC_MMC_CDETECT_REG);
- return !!(cdetect & DWC_MMC_CDETECT_CARD_DETECT_N);
+ return !(cdetect & DWC_MMC_CDETECT_CARD_DETECT_N);
}
static int