From db82adaa99f2963bfbc21876fef4a6e0286b7c18 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 9 Dec 2018 10:01:12 -0500 Subject: bus/isa/hdc.cpp: Eliminate machine().device (nw) --- src/devices/bus/isa/hdc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/bus/isa/hdc.cpp b/src/devices/bus/isa/hdc.cpp index 2d0a6d4afa8..040f72f98c3 100644 --- a/src/devices/bus/isa/hdc.cpp +++ b/src/devices/bus/isa/hdc.cpp @@ -216,10 +216,10 @@ hard_disk_file *xt_hdc_device::pc_hdc_file(int id) switch( id ) { case 0: - img = dynamic_cast(machine().device(subtag("primary").c_str())); + img = subdevice("primary"); break; case 1: - img = dynamic_cast(machine().device(subtag("slave").c_str())); + img = subdevice("slave"); break; } if ( img == nullptr ) -- cgit v1.2.3