From: Shawn Guo Date: Mon, 18 Mar 2013 07:33:39 +0000 (+0800) Subject: net: fec: handle optional clk_ptp more gracefully X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~8^2~10^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c29dc2d771411850777eb027756b12106b5f6cd5;p=pandora-kernel.git net: fec: handle optional clk_ptp more gracefully When the optional clk_ptp is absent, we can just set it to NULL, and clk API will just handle it gracefully. It saves us from checking clk_ptp whenever calling into clk API. Also since clk_ptp is optional, the "ret" variable shouldn't be set in case that the clock is absent. Signed-off-by: Shawn Guo Acked-by: David S. Miller --- Reading git-diff-tree failed