clk: h8300: fix error handling in h8s2678_pll_clk_setup()

The error handling was a bit messy and buggy.  It freed "pll_clock" then
dereferenced it, and then freed it again.  I've re-written it in normal
kernel style.

Fixes: 42ff8e8008c8 ('h8300: clock driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
This commit is contained in:
Dan Carpenter 2015-05-14 13:05:00 +03:00 • committed by Yoshinori Sato
commit ded515a4d5