diff options
author | kumar sourav <sourav.jb1988@gmail.com> | 2019-02-01 14:55:41 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2019-02-01 14:55:41 +0000 |
commit | 287a7f6e39cfc44a39909862365fddfc90778968 (patch) | |
tree | 9ffd42f8d3fe21884ccbf3664ac7f1d9612f80ed /hw/arm/nrf51_soc.c | |
parent | cfe6c547690b06fbce54a6d0f7b05dd7f18e36ea (diff) | |
download | qemu-287a7f6e39cfc44a39909862365fddfc90778968.zip qemu-287a7f6e39cfc44a39909862365fddfc90778968.tar.gz qemu-287a7f6e39cfc44a39909862365fddfc90778968.tar.bz2 |
hw/arm/nrf51_soc: set object owner in memory_region_init_ram
set object owner in memory_region_init_ram() instead
of NULL.
Signed-off-by: kumar sourav <sourav.jb1988@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20190125155630.17430-1-sourav.jb1988@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/nrf51_soc.c')
-rw-r--r-- | hw/arm/nrf51_soc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/arm/nrf51_soc.c b/hw/arm/nrf51_soc.c index 1630c27..3a1c7e2 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; |