OSDN Git Service

clk: ti: check clock type before doing autoidle ops
authorAndreas Kemnade <andreas@kemnade.info>
Wed, 16 Jan 2019 22:04:28 +0000 (23:04 +0100)
committerTero Kristo <t-kristo@ti.com>
Fri, 15 Feb 2019 14:47:55 +0000 (16:47 +0200)
commitfddf4e29a6ce97d693e2a2e759f495ddc4ac2474
treeca7c9ca8141252582abaa10865bdfe81e8d120a6
parentd277ce2d3a75c6c116a6119c3745694f5941eff5
clk: ti: check clock type before doing autoidle ops

Code might use autoidle api with clocks not being omap2 clocks,
so check if clock type is really omap2.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
drivers/clk/ti/autoidle.c