Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sandpoint/sandpoint A detach function for the onboa...
details: https://anonhg.NetBSD.org/src/rev/ff0a135e3c4a
branches: trunk
changeset: 772992:ff0a135e3c4a
user: phx <phx%NetBSD.org@localhost>
date: Mon Jan 23 15:16:37 2012 +0000
description:
A detach function for the onboard flash probably makes no sense, so remove it.
diffstat:
sys/arch/sandpoint/sandpoint/flash_cfi.c | 24 +++---------------------
1 files changed, 3 insertions(+), 21 deletions(-)
diffs (56 lines):
diff -r 52f84c46f0c2 -r ff0a135e3c4a sys/arch/sandpoint/sandpoint/flash_cfi.c
--- a/sys/arch/sandpoint/sandpoint/flash_cfi.c Mon Jan 23 14:13:51 2012 +0000
+++ b/sys/arch/sandpoint/sandpoint/flash_cfi.c Mon Jan 23 15:16:37 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: flash_cfi.c,v 1.1 2011/12/17 20:20:38 phx Exp $ */
+/* $NetBSD: flash_cfi.c,v 1.2 2012/01/23 15:16:37 phx Exp $ */
/*-
* Copyright (c) 2011 Frank Wille.
@@ -32,7 +32,7 @@
* NOR CFI driver support for sandpoint
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: flash_cfi.c,v 1.1 2011/12/17 20:20:38 phx Exp $");
+__KERNEL_RCSID(0, "$NetBSD: flash_cfi.c,v 1.2 2012/01/23 15:16:37 phx Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -45,7 +45,6 @@
static int sandpointcfi_probe(device_t, cfdata_t, void *);
static void sandpointcfi_attach(device_t, device_t, void *);
-static int sandpointcfi_detach(device_t, int);
struct sandpointcfi_softc {
device_t sc_dev;
@@ -56,7 +55,7 @@
};
CFATTACH_DECL_NEW(sandpointcfi, sizeof(struct sandpointcfi_softc),
- sandpointcfi_probe, sandpointcfi_attach, sandpointcfi_detach, NULL);
+ sandpointcfi_probe, sandpointcfi_attach, NULL, NULL);
static int
sandpointcfi_probe(device_t parent, cfdata_t cf, void *aux)
@@ -153,20 +152,3 @@
sc->sc_nordev = nor_attach_mi(&sc->sc_nor_if, self);
}
-
-static int
-sandpointcfi_detach(device_t self, int flags)
-{
- struct sandpointcfi_softc *sc;
- int rv;
-
- pmf_device_deregister(self);
- sc = device_private(self);
- rv = 0;
-
- if (sc->sc_nordev != NULL)
- rv = config_detach(sc->sc_nordev, flags);
-
- bus_space_unmap(sc->sc_cfi.cfi_bst, sc->sc_cfi.cfi_bsh, sc->sc_size);
- return rv;
-}
Home |
Main Index |
Thread Index |
Old Index