From: Axel Lin Date: Tue, 16 Apr 2019 10:17:27 +0000 (+0800) Subject: regulator: tps80031: Remove unused *rdev from struct tps80031_regulator X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=de110f387371337cf90f40055cf1ebdf01b6f427;p=openwrt%2Fstaging%2Fblogic.git regulator: tps80031: Remove unused *rdev from struct tps80031_regulator The ri-rdev is assigend but not used, so remove it. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c index 1001147404c3..d97cd55b6850 100644 --- a/drivers/regulator/tps80031-regulator.c +++ b/drivers/regulator/tps80031-regulator.c @@ -85,7 +85,6 @@ struct tps80031_regulator_info { struct tps80031_regulator { struct device *dev; - struct regulator_dev *rdev; struct tps80031_regulator_info *rinfo; u8 device_flags; @@ -736,7 +735,6 @@ static int tps80031_regulator_probe(struct platform_device *pdev) ri->rinfo->desc.name); return PTR_ERR(rdev); } - ri->rdev = rdev; } platform_set_drvdata(pdev, pmic);