diff options
| author | Uwe Kleine-König <[email protected]> | 2021-11-23 09:29:38 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2022-02-02 17:03:05 +0000 |
| commit | 74746ac0f03fdff07e4ad9344aaa4fab4028f9c9 (patch) | |
| tree | 7e2f8aa275b077e2653486737cb3560c21639e5a /drivers/pwm/pwm-stmpe.c | |
| parent | pwm: sun4i: Rename variable pointing to driver private data (diff) | |
| download | kernel-74746ac0f03fdff07e4ad9344aaa4fab4028f9c9.tar.gz kernel-74746ac0f03fdff07e4ad9344aaa4fab4028f9c9.zip | |
pwm: stmpe: Drop unused setting of driver data
The driver never uses dev_get_drvdata() to retrieve the pwm driver data.
So drop setting it.
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stmpe.c')
| -rw-r--r-- | drivers/pwm/pwm-stmpe.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-stmpe.c b/drivers/pwm/pwm-stmpe.c index 9dc983a3cbf1..7c0e567ff71c 100644 --- a/drivers/pwm/pwm-stmpe.c +++ b/drivers/pwm/pwm-stmpe.c @@ -301,8 +301,6 @@ static int __init stmpe_pwm_probe(struct platform_device *pdev) return ret; } - platform_set_drvdata(pdev, pwm); - return 0; } |
