diff options
Diffstat (limited to 'src/devices/cpu/psx/dma.h')
-rw-r--r-- | src/devices/cpu/psx/dma.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/devices/cpu/psx/dma.h b/src/devices/cpu/psx/dma.h index 97785439bb3..3e368c23ad3 100644 --- a/src/devices/cpu/psx/dma.h +++ b/src/devices/cpu/psx/dma.h @@ -15,9 +15,6 @@ DECLARE_DEVICE_TYPE(PSX_DMA, psxdma_device) -#define MCFG_PSX_DMA_IRQ_HANDLER(_devcb) \ - downcast<psxdma_device &>(*device).set_irq_handler(DEVCB_##_devcb); - class psxdma_device : public device_t { public: @@ -27,7 +24,7 @@ public: psxdma_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); //configuration helpers - template<class Object> devcb_base &set_irq_handler(Object &&cb) { return m_irq_handler.set_callback(std::forward<Object>(cb)); } + auto irq() { return m_irq_handler.bind(); } void install_read_handler( int n_channel, read_delegate p_fn_dma_read ); void install_write_handler( int n_channel, write_delegate p_fn_dma_write ); |