summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/namcos2.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/machine/namcos2.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/machine/namcos2.cpp')
-rw-r--r--src/mame/machine/namcos2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/machine/namcos2.cpp b/src/mame/machine/namcos2.cpp
index b9db00d2950..4dfc4b91407 100644
--- a/src/mame/machine/namcos2.cpp
+++ b/src/mame/machine/namcos2.cpp
@@ -136,7 +136,7 @@ MACHINE_START_MEMBER(namcos2_shared_state,namcos2)
{
namcos2_kickstart = nullptr;
m_eeprom = std::make_unique<uint8_t[]>(m_eeprom_size);
- machine().device<nvram_device>("nvram")->set_base(m_eeprom.get(), m_eeprom_size);
+ subdevice<nvram_device>("nvram")->set_base(m_eeprom.get(), m_eeprom_size);
}
MACHINE_RESET_MEMBER(namcos2_shared_state, namcos2)