From: Devendra Naga Date: Wed, 19 Sep 2012 21:04:36 +0000 (+0000) Subject: at91ether: return PTR_ERR if call to clk_get fails X-Git-Tag: v3.6-rc7~10^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cfc1590107a155218c97df0db3eb0a2bd7fda16;p=pandora-kernel.git at91ether: return PTR_ERR if call to clk_get fails we are currently returning ENODEV, as the clk_get may give a exact error code in its returned pointer, assign it to the ret by using the PTR_ERR function, so that the subsequent goto label will jump to the error path and clean the driver and return the error correctly. Signed-off-by: Devendra Naga Acked-by: Nicolas Ferre Signed-off-by: David S. Miller --- Reading git-diff-tree failed