reset: fix non GPIO reset
The reset controller structure is zero initialized in the OF
reset case, but as 0 is also a valid GPIO number the current
code tries to assert/deassert the GPIO instead of calling into
the reset controller device.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 51e97d1 commit 34e8a227d4e0810cb58f34457ca9f802a6ffde7c
@Lucas Stach Lucas Stach authored on 10 Jan 2016
Sascha Hauer committed on 11 Jan 2016
Showing 1 changed file
View
drivers/reset/core.c