]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc9feab1c4b1737c00bd9d99d4b103b25789df58e
treeebd4f9ae0b08f5e0ca414586d24d49606a0bcc49
parent2a93ac23f1342778727af1db654af017c514cfae
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