From: Fabio Estevam Date: Mon, 18 Feb 2013 10:20:31 +0000 (+0000) Subject: net: fec: Do a sanity check on the gpio number X-Git-Tag: v3.9-rc1~139^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07dcf8e9cc77e86eedfc28fa37713b5471e906b7;p=pandora-kernel.git net: fec: Do a sanity check on the gpio number Check whether the phy-reset GPIO is valid, prior to requesting it. In the case a board does not provide a phy-reset GPIO, just returns immediately. With such gpio validation in place, it is also safe to change from pr_debug to dev_err in the case the gpio request fails. Signed-off-by: Fabio Estevam Signed-off-by: David S. Miller --- Reading git-diff-tree failed