]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ide/qdev.c
hw/ide: Convert DeviceClass init to realize
authorMao Zhongyi <maozy.fnst@cn.fujitsu.com>
Mon, 18 Sep 2017 14:05:13 +0000 (22:05 +0800)
committerJohn Snow <jsnow@redhat.com>
Mon, 18 Sep 2017 23:43:38 +0000 (19:43 -0400)
commit794939e81d4c61d86298402a2e9913dc74b55a8e
tree8f4dd3d5bc6e147951bbe957c1c250917d4dd4db
parentac8d9f2e4ca290ecc87abb3b09fb10c21c41d281
hw/ide: Convert DeviceClass init to realize

Replace init with realize in IDEDeviceClass, which has errp
as a parameter. So all the implementations now use error_setg
instead of error_report for reporting error.

Cc: John Snow <jsnow@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Max Reitz <mreitz@redhat.com>
Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: c4d27b4b5d9e37468e63e35214ce4833ca271542.1505737465.git.maozy.fnst@cn.fujitsu.com
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/core.c
hw/ide/qdev.c
include/hw/ide/internal.h
tests/qemu-iotests/051.pc.out