On Fri, 25 Jan 2019 at 15:56, kumar sourav <sourav.jb1...@gmail.com> wrote: > > set object owner in memory_region_init_ram() instead > of NULL. > > Signed-off-by: kumar sourav <sourav.jb1...@gmail.com> > --- > hw/arm/nrf51_soc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/hw/arm/nrf51_soc.c b/hw/arm/nrf51_soc.c > index 1630c27594..3a1c7e200c 100644 > --- a/hw/arm/nrf51_soc.c > +++ b/hw/arm/nrf51_soc.c > @@ -89,7 +89,8 @@ static void nrf51_soc_realize(DeviceState *dev_soc, Error > **errp) > } > memory_region_add_subregion(&s->container, NRF51_FLASH_BASE, &s->flash); > > - memory_region_init_ram(&s->sram, NULL, "nrf51.sram", s->sram_size, &err); > + memory_region_init_ram(&s->sram, OBJECT(s), "nrf51.sram", s->sram_size, > + &err); > if (err) { > error_propagate(errp, err); > return;
Applied to target-arm.next, thanks. -- PMM