summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/ymf271.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/ymf271.h')
-rw-r--r--src/devices/sound/ymf271.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/devices/sound/ymf271.h b/src/devices/sound/ymf271.h
index 075650b8586..2022096bce3 100644
--- a/src/devices/sound/ymf271.h
+++ b/src/devices/sound/ymf271.h
@@ -6,9 +6,6 @@
#pragma once
-#define MCFG_YMF271_IRQ_HANDLER(_devcb) \
- downcast<ymf271_device &>(*device).set_irq_handler(DEVCB_##_devcb);
-
class ymf271_device : public device_t, public device_sound_interface, public device_rom_interface
{
public:
@@ -17,7 +14,7 @@ public:
ymf271_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_handler() { return m_irq_handler.bind(); }
DECLARE_READ8_MEMBER( read );
DECLARE_WRITE8_MEMBER( write );