Skip to content

Commit f329dcc

Browse files
billy-tsaigregkh
authored andcommitted
hwmon: (aspeed-g6-pwm-tach): remove redundant driver remove callback
[ Upstream commit 46fef85 ] Drops the remove callback as it only asserts reset and the probe already registers a devres action (devm_add_action_or_reset()) to call aspeed_pwm_tach_reset_assert(). Fixes: 7e1449c ("hwmon: (aspeed-g6-pwm-tacho): Support for ASPEED g6 PWM/Fan tach") Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20260309-pwm_fixes-v2-1-ca9768e70470@aspeedtech.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 06fed91 commit f329dcc

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

drivers/hwmon/aspeed-g6-pwm-tach.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -517,13 +517,6 @@ static int aspeed_pwm_tach_probe(struct platform_device *pdev)
517517
return 0;
518518
}
519519

520-
static void aspeed_pwm_tach_remove(struct platform_device *pdev)
521-
{
522-
struct aspeed_pwm_tach_data *priv = platform_get_drvdata(pdev);
523-
524-
reset_control_assert(priv->reset);
525-
}
526-
527520
static const struct of_device_id aspeed_pwm_tach_match[] = {
528521
{
529522
.compatible = "aspeed,ast2600-pwm-tach",
@@ -534,7 +527,6 @@ MODULE_DEVICE_TABLE(of, aspeed_pwm_tach_match);
534527

535528
static struct platform_driver aspeed_pwm_tach_driver = {
536529
.probe = aspeed_pwm_tach_probe,
537-
.remove = aspeed_pwm_tach_remove,
538530
.driver = {
539531
.name = "aspeed-g6-pwm-tach",
540532
.of_match_table = aspeed_pwm_tach_match,

0 commit comments

Comments
 (0)