• Stephen Boyd's avatar
    mfd: intel_quark_i2c_gpio: Use clkdev_create() · c4726abc
    Stephen Boyd authored
    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: default avatarStephen Boyd <sboyd@codeaurora.org>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    c4726abc
intel_quark_i2c_gpio.c 7.24 KB