pwm: Remove __init initializer for pwm_add_table()
authorShobhit Kumar <[email protected]>
Thu, 12 Mar 2015 16:31:31 +0000 (22:01 +0530)
committerThierry Reding <[email protected]>
Thu, 23 Apr 2015 12:50:52 +0000 (14:50 +0200)
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 <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Alexandre Courbot <[email protected]>
Cc: Thierry Reding <[email protected]>
Signed-off-by: Shobhit Kumar <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
drivers/pwm/core.c

index 810aef3f4c3e84586d5dd5719ea5d9c74dcfdcfe..ba34c7d8904232de070b78d4565377c1fab75740 100644 (file)
@@ -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);