clk: samsung: s3c2412: Use generic helper for handling suspend/resume
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 6 Sep 2018 15:55:25 +0000 (17:55 +0200)
committerSylwester Nawrocki <snawrocki@kernel.org>
Thu, 6 Sep 2018 18:47:01 +0000 (20:47 +0200)
commit1b3493d755c85b0fd206b7e5f04ce7050af90c41
tree934144b5b97aec3f5bda87886d5c2ac14fc80b27
parent6bdac3b4c493f86554bc11013d47d31243022beb
clk: samsung: s3c2412: Use generic helper for handling suspend/resume

Replace common suspend/resume handling code by generic helper.
Almost no functional change, the only difference is in handling
of hypothetical memory allocation failure on boot.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sylwester Nawrocki <snawrocki@kernel.org>
drivers/clk/samsung/clk-s3c2412.c