summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/meritm.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-06-03 19:18:03 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-06-03 19:18:03 -0400
commit74c566eafddd1affb9834c4050573e0c419034b2 (patch)
treea4a82f1a8b64edd569a31095241915e9df1f5387 /src/mame/drivers/meritm.cpp
parent269b06a99bd49339c1d20c8cf95c50e0480ca599 (diff)
Replace machine().device with subdevice for NVRAM installation; clean up videopkr.cpp a little more (nw)
I have to figure out a better way to do this...
Diffstat (limited to 'src/mame/drivers/meritm.cpp')
-rw-r--r--src/mame/drivers/meritm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/meritm.cpp b/src/mame/drivers/meritm.cpp
index 001d469f427..3e188a3c7c9 100644
--- a/src/mame/drivers/meritm.cpp
+++ b/src/mame/drivers/meritm.cpp
@@ -1075,7 +1075,7 @@ MACHINE_START_MEMBER(meritm_state,meritm_crt250_crt252_crt258)
MACHINE_START_MEMBER(meritm_state,meritm_crt260)
{
m_ram = std::make_unique<uint8_t[]>( 0x8000 );
- machine().device<nvram_device>("nvram")->set_base(m_ram.get(), 0x8000);
+ subdevice<nvram_device>("nvram")->set_base(m_ram.get(), 0x8000);
memset(m_ram.get(), 0x00, 0x8000);
m_bank1->configure_entries(0, 128, m_region_maincpu->base(), 0x8000);
m_bank2->configure_entries(0, 128, m_region_maincpu->base(), 0x8000);