Skip to content
Snippets Groups Projects
Commit 7a10f473 authored by Daniel Drake's avatar Daniel Drake Committed by Wolfram Sang
Browse files

i2c-pxa: prepare clock before use


On OLPC XO-1.75 (MMP2), a WARN_ON() was occurring during boot
since the clock being enabled by i2c-pxa had not been prepared.

Use clk_prepare_enable() to ensure that the prepare operation
has taken place, and use clk_disable_unprepare() in the matching
shutdown paths.

Signed-off-by: default avatarDaniel Drake <dsd@laptop.org>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 661f6c1c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment