diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/pwm/pwm-samsung.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-samsung.c b/drivers/pwm/pwm-samsung.c index 57eb8cb0638f..b59639e0c029 100644 --- a/drivers/pwm/pwm-samsung.c +++ b/drivers/pwm/pwm-samsung.c | |||
| @@ -225,8 +225,8 @@ static int pwm_samsung_request(struct pwm_chip *chip, struct pwm_device *pwm) | |||
| 225 | 225 | ||
| 226 | static void pwm_samsung_free(struct pwm_chip *chip, struct pwm_device *pwm) | 226 | static void pwm_samsung_free(struct pwm_chip *chip, struct pwm_device *pwm) |
| 227 | { | 227 | { |
| 228 | pwm_set_chip_data(pwm, NULL); | ||
| 229 | devm_kfree(chip->dev, pwm_get_chip_data(pwm)); | 228 | devm_kfree(chip->dev, pwm_get_chip_data(pwm)); |
| 229 | pwm_set_chip_data(pwm, NULL); | ||
| 230 | } | 230 | } |
| 231 | 231 | ||
| 232 | static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) | 232 | static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) |
