fs_enet: cleanup clock API use
authorGerhard Sittig <gsi@denx.de>
Thu, 22 Aug 2013 19:55:13 +0000 (21:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Aug 2013 05:13:54 +0000 (22:13 -0700)
commit2771399ac9986c75437a83b1c723493cfcdfa439
tree39e8eb8344696976b3b923d6f95fd4ee0aa41ae2
parent35b9eb0eee736e3d984d24873e0eff85dba6037f
fs_enet: cleanup clock API use

make the Freescale ethernet driver get, prepare and enable the FEC clock
during probe(); disable and unprepare the clock upon remove(), put is
done by the devm approach; hold a reference to the clock over the period
of use.

clock lookup is non-fatal as not all platforms provide clock specs in
their device tree; failure to enable specified clocks is fatal.

Signed-off-by: Gerhard Sittig <gsi@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
include/linux/fs_enet_pd.h