]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00329352-1 regmap: regmap-mmio: make clk_id optionally when getting clock
authorDong Aisheng <b29396@freescale.com>
Wed, 27 Aug 2014 07:55:59 +0000 (15:55 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:07 +0000 (21:17 -0600)
commite1eaee07ed28a5760f56ca148a22184958e96aaa
treeaad6b746f11f07f2dafb92103e35ce1d951e5e33
parent346d968ae5b49cbd08777bb24af08ffc9c554f02
ENGR00329352-1 regmap: regmap-mmio: make clk_id optionally when getting clock

According to clock framework, the clk_id could be NULL when getting clock.
But current code relies on a non null clk_id to get clock.
Changing the code to allow a null clk_id to get clock to make it more
reasonable to use.
And the regmap_mmio_gen_context will try to get clock by default but ignore
error if not finding the clock in case some regmap access not reply on
a specific clock.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit e94692d02c66c87c246af3b7c311d02a2d04c739)
drivers/base/regmap/regmap-mmio.c