nvmem: mediatek: Fix later provider initialization
authorAndrew-CT Chen <andrew-ct.chen@mediatek.com>
Mon, 22 Feb 2016 11:24:05 +0000 (11:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Mar 2016 20:20:29 +0000 (12:20 -0800)
commit564e7f87a0806462898bf67112bc602644476c56
tree90effe95f059eb0c64e9a5310185df73b4ad0064
parentc7e3c5f861f0406aa4bc7ee4af0d789ef4a828db
nvmem: mediatek: Fix later provider initialization

Possibly, provider driver initialization is later than
consumer driver. Use function subsys_initcall to initialize
NVMEM provider early to ensure NVMEM consumer doesn't need
to -EPROBE_DEFER.

Signed-off-by: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/mtk-efuse.c