diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2016-02-08 17:45:28 -0800 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-02-11 11:03:07 +0000 |
commit | c4726abce63bf9b1887ce68fdf012a823bd94ec3 (patch) | |
tree | 2cb7f9921a87f4e1b346e57c1787ba3795e0e8f2 /drivers/regulator | |
parent | 36f90b0a2ddd60823fe193a85e60ff1906c2a9b3 (diff) | |
download | linux-stable-c4726abce63bf9b1887ce68fdf012a823bd94ec3.tar.gz linux-stable-c4726abce63bf9b1887ce68fdf012a823bd94ec3.tar.bz2 linux-stable-c4726abce63bf9b1887ce68fdf012a823bd94ec3.zip |
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>
Diffstat (limited to 'drivers/regulator')
0 files changed, 0 insertions, 0 deletions