mtd: nand: fsmc: use devm_clk_get()
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 21 Mar 2017 10:04:03 +0000 (11:04 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 23 Mar 2017 10:11:31 +0000 (11:11 +0100)
commitfb8ed2ca432443ef1898aad7501c6e63c5c94f8e
tree8e40acecb122a58c758803fbbdf900f2fea0afcc
parenta1b1e1d5bdfe79e3d3b28387dd43bb16531be5a4
mtd: nand: fsmc: use devm_clk_get()

This commit switches the fsmc_nand driver from clk_get() to
devm_clk_get(), which saves a few clk_put().

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/fsmc_nand.c