Peter Maydell 91c968ac72 qdev: Have qdev_set_parent_bus() handle devices already on a bus
Instead of qdev_set_parent_bus() silently doing the wrong
thing if it's handed a device that's already on a bus,
have it remove the device from the old bus and add it to
the new one. This is useful for the raspi2 sdcard.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-id: 1488293711-14195-2-git-send-email-peter.maydell@linaro.org
2017-02-28 17:10:00 +00:00
..
2016-09-08 18:05:22 +04:00
2016-01-29 15:07:25 +00:00
2016-01-29 15:07:25 +00:00
2016-05-23 16:53:46 +02:00
2016-01-29 15:07:25 +00:00
2016-05-19 16:42:30 +02:00