diff options
author | Andreas Färber <afaerber@suse.de> | 2013-07-27 01:55:26 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-07-29 20:41:13 +0200 |
commit | 19d46d711d93cb3a37dada945cb3410278b94bc3 (patch) | |
tree | b0d2dd52d14154a9c0a577dcb8cd204d0a679fb1 /dma-helpers.c | |
parent | eddbf0ab9db8385d7cb57e23891c1d41488b303e (diff) | |
download | qemu-19d46d711d93cb3a37dada945cb3410278b94bc3.zip |
fdc: Fix inheritence for SUNW,fdtwo
Since commit dd3be7420774f7dc8f37a96ca24d07f0b6f31b3b SUNW,fdtwo's
initfn (realizefn since 940194c2369e50d91d1abf6f36d43853eea5e539)
was using SYSBUS_FDC() cast. This uses type sysbus-fdc rather than
SUNW,fdtwo.
Fix this by letting SUNW,fdtwo and sysbus-fdc both inherit from an
abstract type base-sysbus-fdc.
This allows to consolidate realizefns by using instance_init functions.
Clean up variable names and variable order while at it.
Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: Hu Tao <hutao@cn.fujitsu.com>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'dma-helpers.c')
0 files changed, 0 insertions, 0 deletions