diff options
Diffstat (limited to 'src/devices/sound/es1373.h')
-rw-r--r-- | src/devices/sound/es1373.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/sound/es1373.h b/src/devices/sound/es1373.h index a2705cba287..db3ea72b192 100644 --- a/src/devices/sound/es1373.h +++ b/src/devices/sound/es1373.h @@ -9,7 +9,7 @@ #include "machine/pci.h" #define MCFG_ES1373_IRQ_HANDLER(cb) \ - devcb = &downcast<es1373_device &>(*device).set_irq_handler(DEVCB_##cb); + downcast<es1373_device &>(*device).set_irq_handler(DEVCB_##cb); class es1373_device : public pci_device, public device_sound_interface { @@ -20,6 +20,7 @@ public: uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override; template <typename T> devcb_base &set_irq_handler(T &&cb) { return m_irq_handler.set_callback(std::forward<T>(cb)); } + auto irq_handler() { return m_irq_handler.bind(); } DECLARE_READ32_MEMBER (reg_r); DECLARE_WRITE32_MEMBER(reg_w); |