]> Git Repo - qemu.git/commit - hw/ppc/spapr_drc.c
spapr: Add DRC release method
authorDavid Gibson <[email protected]>
Fri, 16 Jun 2017 08:19:20 +0000 (16:19 +0800)
committerDavid Gibson <[email protected]>
Tue, 11 Jul 2017 01:04:01 +0000 (11:04 +1000)
commit6b762f29a8bc9feb3e45d512169571d3cc8a4f48
tree849fdabbe7b530dcc7830a1580ee02f257a111f1
parent6caf3ac6131f4981c722a48d57cb4a5af3a18675
spapr: Add DRC release method

At the moment, spapr_drc_release() has an ugly switch on the DRC type to
call the right, device-specific release function.  This cleans it up by
doing that via a proper QOM method.

It's still arguably an abstraction violation for the DRC code to call into
the specific device code, but one mess at a time.

Signed-off-by: David Gibson <[email protected]>
Reviewed-by: Laurent Vivier <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
hw/ppc/spapr_drc.c
include/hw/ppc/spapr_drc.h
This page took 0.024428 seconds and 4 git commands to generate.