clk: ti: dra7-atl: Provide error check for incoming parameters in set_rate
authorNishanth Menon <nm@ti.com>
Mon, 18 Aug 2014 16:56:55 +0000 (11:56 -0500)
committerTero Kristo <t-kristo@ti.com>
Thu, 21 Aug 2014 15:04:16 +0000 (18:04 +0300)
commit20411dad75ece9a613af715df4489e60990c4017
treea9d8dfbb92732c28b24737916f2aaf84bb703aa0
parent2f1032517623b70920d99529e5c87c8c680ab8bf
clk: ti: dra7-atl: Provide error check for incoming parameters in set_rate

Check for valid parameters in check rate. Else, we end up getting
errors.

This occurs as part of the inital clock tree update of child clock
nodes where new_rate could be 0 for non functional clocks.

Fixes: 9ac33b0ce81fa48 (" CLK: TI: Driver for DRA7 ATL (Audio Tracking Logic)")
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
drivers/clk/ti/clk-dra7-atl.c