Skip to content

Commit

Permalink
pwm: ab8500: Add .owner to struct pwm_ops
Browse files Browse the repository at this point in the history
Add missing .owner of struct pwm_ops. This prevents the module from being
removed from underneath its users.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
AxelLin authored and Thierry Reding committed Apr 2, 2013
1 parent 563861c commit fa0abee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pwm/pwm-ab8500.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ static const struct pwm_ops ab8500_pwm_ops = {
.config = ab8500_pwm_config,
.enable = ab8500_pwm_enable,
.disable = ab8500_pwm_disable,
.owner = THIS_MODULE,
};

static int ab8500_pwm_probe(struct platform_device *pdev)
Expand Down

0 comments on commit fa0abee

Please sign in to comment.