]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitafef4f83434696264bf610a99395b432508975ae
tree48948c6f3c723170b238a9fcb9b16d9018da414a
parente7cdee809facfb9dd95b9eed9cde589b34ad1a1a
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