drivers: base: opp: add devm_* for registration of notification chain
authorLukasz Luba <l.luba@partner.samsung.com>
Wed, 23 Jan 2019 20:30:36 +0000 (21:30 +0100)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:58:21 +0000 (14:58 +0900)
commit64bec0ce8cdd1a4b41767ee5d53946f11c28843b
treec57f9f6e664fad993d64778a92db50b40fabacec
parent15cc9cd1513f1707e957593cf11eb4ba2f2af11f
drivers: base: opp: add devm_* for registration of notification chain

Add safe function devm_pm_opp_register_notifier() for registering
notification chain for OPP changes. The function is used in case of
deffer probe, when the device is cleaned and probe function is called
agian.

Change-Id: I188bbfaddc821489c26cb908abb05ccece831dc3
Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
drivers/base/power/opp/devres.c