summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/msx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/msx.cpp')
-rw-r--r--src/mame/machine/msx.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mame/machine/msx.cpp b/src/mame/machine/msx.cpp
index 784d891e8f3..7a174aa98cc 100644
--- a/src/mame/machine/msx.cpp
+++ b/src/mame/machine/msx.cpp
@@ -37,14 +37,8 @@ void msx2_state::machine_start()
{
msx_state::machine_start();
- for (device_t &device : device_iterator(*this))
- {
- msx_switched_interface *switched;
- if (device.interface(switched))
- {
- m_switched.push_back(switched);
- }
- }
+ for (msx_switched_interface &switched : device_interface_enumerator<msx_switched_interface>(*this))
+ m_switched.push_back(&switched);
save_item(NAME(m_rtc_latch));
}