reset: Move DT cell size check to the core
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 14 Jan 2016 15:24:44 +0000 (16:24 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 25 Jan 2016 09:58:44 +0000 (10:58 +0100)
commite677774f502635c70cb3180fc51ec7ff8c4b27ea
tree621da84d99220fb2c78d7613b76b8b5bb222efb8
parent203d4f347d86aa9e78342457aa7a3844c4fadd1d
reset: Move DT cell size check to the core

The core currently doesn't check that the DT cell size matches what the
driver declares, which means that every xlate function needs to duplicate
that check.

Make sure that of_reset_control_get checks for this to avoid duplication
and errors.

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