Skip to content

Commit

Permalink
pwm: Remove __init initializer for pwm_add_table()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Shobhit Kumar authored and thierryreding committed Apr 23, 2015
1 parent 4a1c683 commit c264f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pwm/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c264f11

Please sign in to comment.