hw/qdev: Abort rather than ignoring errors adding device properties
Instead of ignoring any errors that occur when adding properties
to a new device in device_initfn(), check for them and abort if any
occur. The most likely cause is accidentally adding a duplicate
property, which is a programming error by the device author.
Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Anthony Liguori <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Message-id:
1364217314[email protected]
Signed-off-by: Anthony Liguori <[email protected]>