Xilinx: ARM: xemacps: Enable clocks before accessing HW
commit3722ba8322c869171910d9ac1befc96a72f11858
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Mon, 3 Sep 2012 14:36:26 +0000 (3 07:36 -0700)
committerJohn Linn <john.linn@xilinx.com>
Wed, 5 Sep 2012 21:46:35 +0000 (5 14:46 -0700)
treed70dcc7f2f930b194e8c40b798be4efbd1e13452
parent8dafe00200b18ed30b4845cc7edc99cec79af165
Xilinx: ARM: xemacps: Enable clocks before accessing HW

This patch fixes an issue where hardware registers may be
accessed before the device clocks are enabled.
Also, error handling is improved in the questionable code
section.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
drivers/net/ethernet/xilinx/xilinx_emacps.c