diff options
-rw-r--r-- | drivers/pwm/pwm-lpss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c index c718ad1df3bb..44ce6c6103ae 100644 --- a/drivers/pwm/pwm-lpss.c +++ b/drivers/pwm/pwm-lpss.c | |||
@@ -129,7 +129,7 @@ static const struct pwm_ops pwm_lpss_ops = { | |||
129 | 129 | ||
130 | static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev, | 130 | static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev, |
131 | struct resource *r, | 131 | struct resource *r, |
132 | struct pwm_lpss_boardinfo *info) | 132 | const struct pwm_lpss_boardinfo *info) |
133 | { | 133 | { |
134 | struct pwm_lpss_chip *lpwm; | 134 | struct pwm_lpss_chip *lpwm; |
135 | int ret; | 135 | int ret; |
@@ -140,7 +140,7 @@ static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev, | |||
140 | 140 | ||
141 | lpwm->regs = devm_ioremap_resource(dev, r); | 141 | lpwm->regs = devm_ioremap_resource(dev, r); |
142 | if (IS_ERR(lpwm->regs)) | 142 | if (IS_ERR(lpwm->regs)) |
143 | return lpwm->regs; | 143 | return ERR_CAST(lpwm->regs); |
144 | 144 | ||
145 | if (info) { | 145 | if (info) { |
146 | lpwm->clk_rate = info->clk_rate; | 146 | lpwm->clk_rate = info->clk_rate; |