]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb2b80cf654c195a5fa074fa4dc448f2ecb8b7f82
tree2cb7f9921a87f4e1b346e57c1787ba3795e0e8f2
parent87769ffbad1a15e849b568d4bb3ecd9e274ee8b0
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