POWER: fix compile warnings in log_wakeup_reason
Power: Add guard condition for maximum wakeup reasons
power: wakeup_reason: rename irq_count to irqcount