summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isa
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-13 13:12:24 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-13 13:12:24 -0400
commit83805a56ef0d9a3d1f4048acf8bb616dbc6f2afa (patch)
tree7e5366c617285ef68a8f6f657e9796c6d1312f4b /src/devices/bus/isa
parenta0669cac2c2845e360105e5ae3e51a820939dff7 (diff)
pc_vga.cpp: machine().device cleanups (nw)
Diffstat (limited to 'src/devices/bus/isa')
-rw-r--r--src/devices/bus/isa/mach32.cpp12
-rw-r--r--src/devices/bus/isa/mach32.h2
2 files changed, 2 insertions, 12 deletions
diff --git a/src/devices/bus/isa/mach32.cpp b/src/devices/bus/isa/mach32.cpp
index f2aa9d49872..8867a35d313 100644
--- a/src/devices/bus/isa/mach32.cpp
+++ b/src/devices/bus/isa/mach32.cpp
@@ -49,14 +49,10 @@ mach32_device::mach32_device(const machine_config &mconfig, device_type type, co
MACHINE_CONFIG_START(mach32_device::device_add_mconfig)
MCFG_DEVICE_ADD("8514a", ATIMACH32_8514A, 0)
+ downcast<ibm8514a_device*>(device)->set_vga(DEVICE_SELF);
MCFG_EEPROM_SERIAL_93C56_ADD("ati_eeprom")
MACHINE_CONFIG_END
-void mach32_8514a_device::device_config_complete()
-{
- m_vga = dynamic_cast<mach32_device*>(owner());
-}
-
void mach32_8514a_device::device_start()
{
mach8_device::device_start();
@@ -339,14 +335,10 @@ mach64_device::mach64_device(const machine_config &mconfig, device_type type, co
MACHINE_CONFIG_START(mach64_device::device_add_mconfig)
MCFG_DEVICE_ADD("8514a", ATIMACH64_8514A, 0)
+ downcast<ibm8514a_device*>(device)->set_vga(DEVICE_SELF);
MCFG_EEPROM_SERIAL_93C56_ADD("ati_eeprom")
MACHINE_CONFIG_END
-void mach64_8514a_device::device_config_complete()
-{
- m_vga = dynamic_cast<mach64_device*>(owner());
-}
-
void mach64_8514a_device::device_start()
{
mach32_8514a_device::device_start();
diff --git a/src/devices/bus/isa/mach32.h b/src/devices/bus/isa/mach32.h
index 3ce09ccd029..18d4673ab0f 100644
--- a/src/devices/bus/isa/mach32.h
+++ b/src/devices/bus/isa/mach32.h
@@ -39,7 +39,6 @@ protected:
virtual void device_start() override;
virtual void device_reset() override;
- virtual void device_config_complete() override;
uint16_t m_chip_ID;
uint16_t m_membounds;
@@ -198,7 +197,6 @@ protected:
virtual void device_start() override;
virtual void device_reset() override;
- virtual void device_config_complete() override;
};
// main SVGA device