reset: remove unused device pointer from struct reset_control

Commit 0c5b2b915a ("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>
This commit is contained in:
Philipp Zabel 2015-11-18 14:36:35 +01:00
parent d1f15aa095
commit b354f68ff0

View File

@ -30,7 +30,6 @@ static LIST_HEAD(reset_controller_list);
*/ */
struct reset_control { struct reset_control {
struct reset_controller_dev *rcdev; struct reset_controller_dev *rcdev;
struct device *dev;
unsigned int id; 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 *reset_control_get(struct device *dev, const char *id)
{ {
struct reset_control *rstc;
if (!dev) if (!dev)
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
rstc = of_reset_control_get(dev->of_node, id); return of_reset_control_get(dev->of_node, id);
if (!IS_ERR(rstc))
rstc->dev = dev;
return rstc;
} }
EXPORT_SYMBOL_GPL(reset_control_get); EXPORT_SYMBOL_GPL(reset_control_get);