Skip to content

Commit

Permalink
regulator: tps65217: Remove *rdev[] from struct tps65217
Browse files Browse the repository at this point in the history
Now this driver uses devm_regulator_register() so we don't need to save rdev
pointer to tps->rdev[i] for cleanup.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed Apr 18, 2014
1 parent c9eaa44 commit 073a77d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions drivers/regulator/tps65217-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,6 @@ static int tps65217_regulator_probe(struct platform_device *pdev)
pdev->name);
return PTR_ERR(rdev);
}

/* Save regulator for cleanup */
tps->rdev[i] = rdev;
}
return 0;
}
Expand Down
1 change: 0 additions & 1 deletion include/linux/mfd/tps65217.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ struct tps65217 {
struct tps65217_board *pdata;
unsigned long id;
struct regulator_desc desc[TPS65217_NUM_REGULATOR];
struct regulator_dev *rdev[TPS65217_NUM_REGULATOR];
struct regmap *regmap;
};

Expand Down

0 comments on commit 073a77d

Please sign in to comment.