diff options
| author | Uwe Kleine-König <[email protected]> | 2024-02-14 09:31:54 +0000 |
|---|---|---|
| committer | Uwe Kleine-König <[email protected]> | 2024-02-19 10:04:11 +0000 |
| commit | 05013062a89fa4c2d5913dfb81a8ae0268e0a9dc (patch) | |
| tree | 4f65075b5bbbc7961121e07dfb841dbe816da984 /drivers/pwm/pwm-lpss-pci.c | |
| parent | pwm: lpss-*: Don't set driver data (diff) | |
| download | kernel-05013062a89fa4c2d5913dfb81a8ae0268e0a9dc.tar.gz kernel-05013062a89fa4c2d5913dfb81a8ae0268e0a9dc.zip | |
pwm: lpss-*: Make use of devm_pwmchip_alloc() function
This prepares the pwm-lpss drivers to further changes of the pwm core
outlined in the commit introducing devm_pwmchip_alloc(). There is no
intended semantical change and the driver should behave as before.
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/b567ab5dd992e361eb884fa6c2cac11be9c7dde3.1707900770.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-lpss-pci.c')
| -rw-r--r-- | drivers/pwm/pwm-lpss-pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pwm/pwm-lpss-pci.c b/drivers/pwm/pwm-lpss-pci.c index 34acfe99b74f..25045c229520 100644 --- a/drivers/pwm/pwm-lpss-pci.c +++ b/drivers/pwm/pwm-lpss-pci.c @@ -18,7 +18,7 @@ static int pwm_lpss_probe_pci(struct pci_dev *pdev, const struct pci_device_id *id) { const struct pwm_lpss_boardinfo *info; - struct pwm_lpss_chip *lpwm; + struct pwm_chip *chip; int err; err = pcim_enable_device(pdev); @@ -30,9 +30,9 @@ static int pwm_lpss_probe_pci(struct pci_dev *pdev, return err; info = (struct pwm_lpss_boardinfo *)id->driver_data; - lpwm = devm_pwm_lpss_probe(&pdev->dev, pcim_iomap_table(pdev)[0], info); - if (IS_ERR(lpwm)) - return PTR_ERR(lpwm); + chip = devm_pwm_lpss_probe(&pdev->dev, pcim_iomap_table(pdev)[0], info); + if (IS_ERR(chip)) + return PTR_ERR(chip); pm_runtime_put(&pdev->dev); pm_runtime_allow(&pdev->dev); |
