reset: core: fix reset_control_put
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 1 Feb 2017 07:05:22 +0000 (08:05 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 1 Feb 2017 15:04:25 +0000 (16:04 +0100)
commit4891486fb2c80eaf3bb0f9eb065d15ecd357702f
treed9941a0080b78bea105eb0a3b65a8b43ea7e27f2
parentbb475230b8e59a547ab66ac3b02572df21a580e9
reset: core: fix reset_control_put

Commit "reset: make optional functions really optional" missed to
adjust one check in reset_control_put, causing a NULL pointer
access for optional resets.

Fixes: bb475230b8e5 "reset: make optional functions really optional"
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c