diff options
author | Marius Strobl <marius@FreeBSD.org> | 2006-01-26 21:14:32 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2006-01-26 21:14:32 +0000 |
commit | aa3ee926a983b6ae9f630572f80a78852c151d05 (patch) | |
tree | bf90ebae8a2609e4edc52b969ea260818a96fd02 /sys/sparc64/fhc/fhc_nexus.c | |
parent | f1bacaa50130f42b545a2b577df0652b74db9f3d (diff) | |
download | src-aa3ee926a983b6ae9f630572f80a78852c151d05.tar.gz src-aa3ee926a983b6ae9f630572f80a78852c151d05.zip |
- Register the generic implementations for the device shutdown, suspend
and resume methods so these events propagate through the device driver
hierarchy.
- In dma(4) enable the chaining of the DMA engine interrupt handler for
the LANCE devices via a dma_setup_intr(). This was commented out before
as I was unsure whether I'd use it but this is probably cleaner than
fiddling with the DMA engine interrupt in the LANCE driver directly.
- In ebus_setup_dinfo() free 'intrs' instead of 'reg' twice in case
setting up a child fails due to routing one of its interrupts fails. [1]
Found by: Coverity Prevent [1]
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=154870
Diffstat (limited to 'sys/sparc64/fhc/fhc_nexus.c')
-rw-r--r-- | sys/sparc64/fhc/fhc_nexus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sparc64/fhc/fhc_nexus.c b/sys/sparc64/fhc/fhc_nexus.c index 705c5c3dfb70..0a0406537ba9 100644 --- a/sys/sparc64/fhc/fhc_nexus.c +++ b/sys/sparc64/fhc/fhc_nexus.c @@ -55,6 +55,9 @@ static device_method_t fhc_nexus_methods[] = { /* Device interface. */ DEVMETHOD(device_probe, fhc_nexus_probe), DEVMETHOD(device_attach, fhc_nexus_attach), + DEVMETHOD(device_shutdown, bus_generic_shutdown), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface. */ DEVMETHOD(bus_print_child, fhc_print_child), |