mfd: intel_quark_i2c_gpio: Use clkdev_create()
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 9 Feb 2016 01:45:28 +0000 (17:45 -0800)
committerLee Jones <lee.jones@linaro.org>
Thu, 11 Feb 2016 11:03:07 +0000 (11:03 +0000)
commitc4726abce63bf9b1887ce68fdf012a823bd94ec3
tree2cb7f9921a87f4e1b346e57c1787ba3795e0e8f2
parent36f90b0a2ddd60823fe193a85e60ff1906c2a9b3
mfd: intel_quark_i2c_gpio: Use clkdev_create()

Convert this driver to use clkdev_create() instead of
clk_register_clkdevs(). The latter API is only used by this driver,
although this driver only allocates one clk to add anyway.
Furthermore, this driver allocates the clk_lookup structure with
devm, but clkdev_drop() will free that structure when passed,
leading to a double free when this driver is removed. Clean it
all up and pave the way for the removal of clk_register_clkdevs().

Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/intel_quark_i2c_gpio.c