]> 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)
commit2701bf34e902db3e520346d93e767f11cfc72353
tree48948c6f3c723170b238a9fcb9b16d9018da414a
parentd74c5e0102fa835902aa6765ca91c15bdd815906
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