power: reset: ltc2952: use _optional variant of devm_gpiod_get
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 18 May 2015 20:45:07 +0000 (22:45 +0200)
committerSebastian Reichel <sre@kernel.org>
Sat, 23 May 2015 18:03:42 +0000 (20:03 +0200)
commit9f6cd98fc3c64ebcebf63c04f16246f79bcc4c70
tree96e10c579bd7564657ddb66d5f1977574c0548e2
parenta34c0a8bf8caae7a82de08dbcca2c7c11907c805
power: reset: ltc2952: use _optional variant of devm_gpiod_get

devm_gpiod_get_optional returns NULL if devm_gpiod_get would return an
ENOENT error pointer.

There is no semantic change intended.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/reset/ltc2952-poweroff.c