bus/isa/hdc.cpp: Eliminate machine().device (nw)

This commit is contained in:
AJR 2018-12-09 10:01:12 -05:00
parent 6ba8b0f1ae
commit db82adaa99

View File

@ -216,10 +216,10 @@ hard_disk_file *xt_hdc_device::pc_hdc_file(int id)
switch( id ) switch( id )
{ {
case 0: case 0:
img = dynamic_cast<harddisk_image_device *>(machine().device(subtag("primary").c_str())); img = subdevice<harddisk_image_device>("primary");
break; break;
case 1: case 1:
img = dynamic_cast<harddisk_image_device *>(machine().device(subtag("slave").c_str())); img = subdevice<harddisk_image_device>("slave");
break; break;
} }
if ( img == nullptr ) if ( img == nullptr )