From: Uwe Kleine-König Date: Thu, 12 Feb 2015 14:24:42 +0000 (+0100) Subject: serial: mctrl-gpio: simplify init routine X-Git-Tag: omap-for-v4.2/o2_dc~64^2~77^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d267ea6539f266352f4739c718e278dc62b1df7;p=pandora-kernel.git serial: mctrl-gpio: simplify init routine Instead of ignoring errors returned by devm_gpiod_get_index use devm_gpiod_get_index_optional which results in slightly more strict error handling which is good. Also use the fourth parameter to devm_gpiod_get_index_optional to be able to drop the explicit direction setting. Signed-off-by: Uwe Kleine-König Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed