clk: hi3798cv200: fix unregister call sequence in error path
authorShawn Guo <shawn.guo@linaro.org>
Wed, 24 Jan 2018 11:48:23 +0000 (19:48 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 27 Feb 2018 01:19:12 +0000 (09:19 +0800)
commit055d56891ea7a6bb39444db58ea30eafa5a1cb40
tree17105d5bd404b6bdcfd560f0bba9d9fb214f016c
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
clk: hi3798cv200: fix unregister call sequence in error path

The unregister call sequence in error path of function
hi3798cv200_clk_register() should be opposite to the order of register
calls.  Let's reverse the call sequence to fix the problem.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
drivers/clk/hisilicon/crg-hi3798cv200.c