summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/mb14241.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/mb14241.c')
-rw-r--r--src/emu/machine/mb14241.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/emu/machine/mb14241.c b/src/emu/machine/mb14241.c
index 9d8a37a1afe..1023951fc9c 100644
--- a/src/emu/machine/mb14241.c
+++ b/src/emu/machine/mb14241.c
@@ -21,10 +21,9 @@ struct _mb14241_state
INLINE mb14241_state *get_safe_token( running_device *device )
{
assert(device != NULL);
- assert(device->token != NULL);
- assert(device->type == MB14241);
+ assert(device->type() == MB14241);
- return (mb14241_state *)device->token;
+ return (mb14241_state *)downcast<legacy_device_base *>(device)->token();
}
/*****************************************************************************
@@ -75,5 +74,4 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET
#define DEVTEMPLATE_NAME "MB14241"
#define DEVTEMPLATE_FAMILY "MB14241 Shifter IC"
-#define DEVTEMPLATE_CLASS DEVICE_CLASS_VIDEO
#include "devtempl.h"