PM: Do not use dynamically allocated objects in pm_wakeup_event()