net/at91_ether: prepare and unprepare clock
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 7 Jan 2015 22:59:26 +0000 (23:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 20:35:47 +0000 (15:35 -0500)
commitcaffd45e2e686f6c9238b7c982f6d1c57c741f0a
treee156c32b05d0f97836ec85c6a5f6241421d45eb5
parent62058647994465aaa7329bd707cda6f4601b67c7
net/at91_ether: prepare and unprepare clock

The clock is enabled without being prepared, this leads to:

WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:889 __clk_enable+0x24/0xa8()

and a non working ethernet interface.

Use clk_prepare_enable() and clk_disable_unprepare() to handle the clock.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/at91_ether.c