Skip to content
Commit 3b722da6 authored by Stefan Wahren's avatar Stefan Wahren Committed by Wolfram Sang
Browse files

i2c: bcm2835: Store pointer to bus clock



The commit bebff81f ("i2c: bcm2835: Model Divider in CCF") introduced
a NULL pointer dereference on driver unload. It seems that we can't fetch
the bus clock via devm_clk_get in bcm2835_i2c_remove. As an alternative
approach store a pointer to the bus clock in the private driver structure.

Fixes: bebff81f ("i2c: bcm2835: Model Divider in CCF")
Signed-off-by: default avatarStefan Wahren <wahrenst@gmx.net>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 42052d96
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