sm501: make SerialMM a child, export chardev property
commit0ed40f16a17eaa3a53d62cc871779fa9d5b4447d
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 23 Oct 2019 14:06:23 +0000 (23 16:06 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 7 Jan 2020 13:24:29 +0000 (7 17:24 +0400)
treeb56563dacdf9daf19adb8aac6d869f14d5a16028
parentd9259178fe51a0a550fe50561eb0c346ad4518a4
sm501: make SerialMM a child, export chardev property

Embed the SerialMM sybus device, and re-export its "chardev" property.
That way, we can get rid of PROP_PTR "chr-state" and better track
devices relationship.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
hw/display/sm501.c
hw/sh4/r2d.c