bus: ti-sysc: Just use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS
authorTony Lindgren <tony@atomide.com>
Mon, 1 Oct 2018 16:33:28 +0000 (09:33 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 1 Oct 2018 16:33:28 +0000 (09:33 -0700)
commitf5e80203dadc28176f7b5ad2ec00652dd524fb9a
tree48948c6f3c723170b238a9fcb9b16d9018da414a
parentf949078302594b2f68aa8b4f94dae540d9b66d2c
bus: ti-sysc: Just use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS

As Grygorii Strashko pointed out, the runtime PM use count of the
children can be whatever at suspend and we should not use it. So
let's just suspend ti-sysc at noirq level and get rid of some code.

Let's also remove the PM_SLEEP ifdef and use __maybe_unused as the
PM code already deals with the ifdefs.

Suggested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c