diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-01-10 00:34:34 +0300 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-02-15 14:28:02 +0300 |
commit | 0e253d4193cbc1c63b174f807a26e8b17693049d (patch) | |
tree | 76bfe3d5ab229b707772c309e05446d36e553581 /drivers/pwm/pwm-clps711x.c | |
parent | 40ade0c2e7940becad70a0643ba90488b905b468 (diff) | |
download | linux-0e253d4193cbc1c63b174f807a26e8b17693049d.tar.xz |
pwm: clps711x: Drop custom .of_xlate() callback
The default of_xlate callback (of_pwm_xlate_with_flags()) does
everything the drivers expects from its .of_xlate() callback. So drop
the custom implementation.
Link: https://lore.kernel.org/r/f58336c298d536107de5cab6a57e19f957ab326c.1704835845.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'drivers/pwm/pwm-clps711x.c')
-rw-r--r-- | drivers/pwm/pwm-clps711x.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/pwm/pwm-clps711x.c b/drivers/pwm/pwm-clps711x.c index 06562d4bb963..f3b4af7963be 100644 --- a/drivers/pwm/pwm-clps711x.c +++ b/drivers/pwm/pwm-clps711x.c @@ -74,15 +74,6 @@ static const struct pwm_ops clps711x_pwm_ops = { .apply = clps711x_pwm_apply, }; -static struct pwm_device *clps711x_pwm_xlate(struct pwm_chip *chip, - const struct of_phandle_args *args) -{ - if (args->args[0] >= chip->npwm) - return ERR_PTR(-EINVAL); - - return pwm_request_from_chip(chip, args->args[0], NULL); -} - static int clps711x_pwm_probe(struct platform_device *pdev) { struct clps711x_chip *priv; @@ -102,7 +93,6 @@ static int clps711x_pwm_probe(struct platform_device *pdev) priv->chip.ops = &clps711x_pwm_ops; priv->chip.dev = &pdev->dev; priv->chip.npwm = 2; - priv->chip.of_xlate = clps711x_pwm_xlate; spin_lock_init(&priv->lock); |