[PATCH 2/2] regulator: lp8788-buck: Remove *regulator from struct lp8788_buck

From: Axel Lin
Date: Wed Jan 30 2019 - 08:04:45 EST


It is not used at all, remove it.

Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>
---
drivers/regulator/lp8788-buck.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/regulator/lp8788-buck.c b/drivers/regulator/lp8788-buck.c
index 30de784d8e30..f84167688e5e 100644
--- a/drivers/regulator/lp8788-buck.c
+++ b/drivers/regulator/lp8788-buck.c
@@ -91,7 +91,6 @@ enum lp8788_buck_id {

struct lp8788_buck {
struct lp8788 *lp;
- struct regulator_dev *regulator;
void *dvs;
};

@@ -523,7 +522,6 @@ static int lp8788_buck_probe(struct platform_device *pdev)
return ret;
}

- buck->regulator = rdev;
platform_set_drvdata(pdev, buck);

return 0;
--
2.17.1