diff options
-rw-r--r-- | kernel/irq/internals.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index bd2db6ebb98e..476a20fd9bfc 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h @@ -176,10 +176,10 @@ __DEFINE_UNLOCK_GUARD(irqdesc_lock, struct irq_desc, static inline class_irqdesc_lock_t class_irqdesc_lock_constructor(unsigned int irq, bool bus, unsigned int check) { - class_irqdesc_lock_t _t = { - .bus = bus, - .lock = __irq_get_desc_lock(irq, &_t.flags, bus, check), - }; + class_irqdesc_lock_t _t = { .bus = bus, }; + + _t.lock = __irq_get_desc_lock(irq, &_t.flags, bus, check); + return _t; } |