diff options
| author | Andy Shevchenko <[email protected]> | 2022-08-26 17:26:40 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2022-09-19 13:17:05 +0000 |
| commit | 2e2aa25cf5b0de2a2eb7da124c42184fc76d7afe (patch) | |
| tree | 41086bc9cb54bb6996c63b0fd10b2d21c4d3bd5d /drivers/hwmon/pwm-fan.c | |
| parent | hwmon: (sparx5) Use devm_clk_get_enabled() helper (diff) | |
| download | kernel-2e2aa25cf5b0de2a2eb7da124c42184fc76d7afe.tar.gz kernel-2e2aa25cf5b0de2a2eb7da124c42184fc76d7afe.zip | |
hwmon: (pwm-fan) Replace OF specific call to PWM by plain one
There is no need to call OF specific devm_of_pwm_get() since
the device node parameter duplicates in the device parameter.
Hence we may safely replace it by plain devm_pwm_get() call.
This allows to drop devm_of_pwm_get() as no more users will be.
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/hwmon/pwm-fan.c')
| -rw-r--r-- | drivers/hwmon/pwm-fan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pwm-fan.c b/drivers/hwmon/pwm-fan.c index 6c08551d8d14..06fd1d75101d 100644 --- a/drivers/hwmon/pwm-fan.c +++ b/drivers/hwmon/pwm-fan.c @@ -302,7 +302,7 @@ static int pwm_fan_probe(struct platform_device *pdev) mutex_init(&ctx->lock); - ctx->pwm = devm_of_pwm_get(dev, dev->of_node, NULL); + ctx->pwm = devm_pwm_get(dev, NULL); if (IS_ERR(ctx->pwm)) return dev_err_probe(dev, PTR_ERR(ctx->pwm), "Could not get PWM\n"); |
