Skip to content
Commit 9de93b04 authored by Annaliese McDermond's avatar Annaliese McDermond Committed by Wolfram Sang
Browse files

i2c: bcm2835: Ensure clock exists when probing



Probe function fails to recognize that upstream clock actually
doesn't yet exist because clock driver has not been initialized.
Actually try to go get the clock and test for its existence
before trying to set up a downstream clock based upon it.

This fixes a bug that causes the i2c driver not to work with
monolithic kernels.

Fixes: bebff81f ("i2c: bcm2835: Model Divider in CCF")
Signed-off-by: default avatarAnnaliese McDermond <nh6z@nh6z.net>
Acked-by: default avatarStefan Wahren <wahrenst@gmx.net>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 4a5cfa39
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment