summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/wswan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/wswan.cpp')
-rw-r--r--src/mame/machine/wswan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/machine/wswan.cpp b/src/mame/machine/wswan.cpp
index ad8508a6747..4b13275868a 100644
--- a/src/mame/machine/wswan.cpp
+++ b/src/mame/machine/wswan.cpp
@@ -175,7 +175,7 @@ void wswan_state::common_start()
register_save();
- machine().device<nvram_device>("nvram")->set_base(m_internal_eeprom, INTERNAL_EEPROM_SIZE);
+ subdevice<nvram_device>("nvram")->set_base(m_internal_eeprom, INTERNAL_EEPROM_SIZE);
if (m_cart->exists())
{