diff options
author | Shobhit Kumar <shobhit.kumar@intel.com> | 2015-03-12 19:31:31 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2015-04-23 15:50:52 +0300 |
commit | c264f1110d27185f8531602f5fce400a6bbce946 (patch) | |
tree | 77a04d832d82270810233f54c243ceba903ec9b8 | |
parent | 4a1c683c98e4e2997c79258bffbb9be4af4fba83 (diff) | |
download | linux-c264f1110d27185f8531602f5fce400a6bbce946.tar.xz |
pwm: Remove __init initializer for pwm_add_table()
For platforms that don't support DT, some early MFD modules can register
lookup tables. Remove the __init annotation so that this works. This is
similar to gpio_add_lookup_table() which allows late additions.
CC: Samuel Ortiz <sameo@linux.intel.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | drivers/pwm/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 810aef3f4c3e..ba34c7d89042 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -573,7 +573,7 @@ EXPORT_SYMBOL_GPL(of_pwm_get); * @table: array of consumers to register * @num: number of consumers in table */ -void __init pwm_add_table(struct pwm_lookup *table, size_t num) +void pwm_add_table(struct pwm_lookup *table, size_t num) { mutex_lock(&pwm_lookup_lock); |