summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/tms6100.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/tms6100.c')
-rw-r--r--src/emu/machine/tms6100.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/emu/machine/tms6100.c b/src/emu/machine/tms6100.c
index 054cf0ca500..863a2219de0 100644
--- a/src/emu/machine/tms6100.c
+++ b/src/emu/machine/tms6100.c
@@ -105,10 +105,9 @@ struct _tms6100_state
INLINE tms6100_state *get_safe_token(running_device *device)
{
assert(device != NULL);
- assert(device->token != NULL);
- assert(device->type == TMS6100 ||
- device->type == M58819);
- return (tms6100_state *)device->token;
+ assert(device->type() == TMS6100 ||
+ device->type() == M58819);
+ return (tms6100_state *)downcast<legacy_device_base *>(device)->token();
}
/**********************************************************************************************
@@ -143,7 +142,7 @@ static DEVICE_START( tms6100 )
assert_always(tms != NULL, "Error creating TMS6100 chip");
//tms->intf = device->baseconfig().static_config ? (const tms5110_interface *)device->baseconfig().static_config : &dummy;
- tms->rom = *device->region;
+ tms->rom = *device->region();
tms->device = device;