summaryrefslogtreecommitdiffstats
path: root/drivers/reset
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2015-11-18 14:36:35 +0100
committerPhilipp Zabel <p.zabel@pengutronix.de>2015-11-18 15:13:20 +0100
commitb354f68ff0277b73d346979eac93545026733057 (patch)
tree8df0e4cb25f95fb266bbaf34a4a3b5f849ce5c06 /drivers/reset
parentreset: check return value of reset_controller_register() (diff)
downloadlinux-b354f68ff0277b73d346979eac93545026733057.tar.xz
linux-b354f68ff0277b73d346979eac93545026733057.zip
reset: remove unused device pointer from struct reset_control
Commit 0c5b2b915a58 ("reset: Mark function as static and remove unused function in core.c") removed the only user of the device pointer in struct reset_control. As it is now unused, remove it. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset')
-rw-r--r--drivers/reset/core.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/reset/core.c b/drivers/reset/core.c
index 9ab929049b9d..87376638948d 100644
--- a/drivers/reset/core.c
+++ b/drivers/reset/core.c
@@ -30,7 +30,6 @@ static LIST_HEAD(reset_controller_list);
*/
struct reset_control {
struct reset_controller_dev *rcdev;
- struct device *dev;
unsigned int id;
};
@@ -236,16 +235,10 @@ EXPORT_SYMBOL_GPL(of_reset_control_get);
*/
struct reset_control *reset_control_get(struct device *dev, const char *id)
{
- struct reset_control *rstc;
-
if (!dev)
return ERR_PTR(-EINVAL);
- rstc = of_reset_control_get(dev->of_node, id);
- if (!IS_ERR(rstc))
- rstc->dev = dev;
-
- return rstc;
+ return of_reset_control_get(dev->of_node, id);
}
EXPORT_SYMBOL_GPL(reset_control_get);