reset: Add of_reset_control_get
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 20 Dec 2013 21:41:07 +0000 (22:41 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 3 Feb 2014 09:19:40 +0000 (10:19 +0100)
commitfc0a5921561c71be2c334a335c1680f7930434d7
treeebd4f9ae0b08f5e0ca414586d24d49606a0bcc49
parent0c5b2b915a5863643b4534dabd028d4bb34c3b27
reset: Add of_reset_control_get

In some cases, you might need to deassert from reset an hardware block that
doesn't associated to a struct device (CPUs, timers, etc.).

Add a small helper to retrieve the reset controller from the device tree
without the need to pass a struct device.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c
include/linux/reset.h