Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc Return an actual error. Reported by:
details: https://anonhg.NetBSD.org/src/rev/52558facdde9
branches: trunk
changeset: 806161:52558facdde9
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 07 04:13:26 2015 +0000
description:
Return an actual error. Reported by:
http://www.m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-4
diffstat:
sys/dev/sdmmc/sdmmc_mem.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r c66b2661720d -r 52558facdde9 sys/dev/sdmmc/sdmmc_mem.c
--- a/sys/dev/sdmmc/sdmmc_mem.c Sat Feb 07 04:11:06 2015 +0000
+++ b/sys/dev/sdmmc/sdmmc_mem.c Sat Feb 07 04:13:26 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdmmc_mem.c,v 1.32 2014/12/07 20:07:25 jmcneill Exp $ */
+/* $NetBSD: sdmmc_mem.c,v 1.33 2015/02/07 04:13:26 christos Exp $ */
/* $OpenBSD: sdmmc_mem.c,v 1.10 2009/01/09 10:55:22 jsg Exp $ */
/*
@@ -45,7 +45,7 @@
/* Routines for SD/MMC memory cards. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdmmc_mem.c,v 1.32 2014/12/07 20:07:25 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdmmc_mem.c,v 1.33 2015/02/07 04:13:26 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_sdmmc.h"
@@ -748,7 +748,7 @@
aprint_error_dev(sc->sc_dev,
"unrecognised future version (%d)\n",
ext_csd[EXT_CSD_STRUCTURE]);
- return error;
+ return ENOTSUP;
}
if (ext_csd[EXT_CSD_CARD_TYPE] & EXT_CSD_CARD_TYPE_F_52M) {
@@ -761,7 +761,7 @@
aprint_error_dev(sc->sc_dev,
"unknown CARD_TYPE: 0x%x\n",
ext_csd[EXT_CSD_CARD_TYPE]);
- return error;
+ return ENOTSUP;
}
if (!ISSET(sc->sc_caps, SMC_CAPS_MMC_HIGHSPEED)) {
Home |
Main Index |
Thread Index |
Old Index