diff options
author | 2020-01-04 16:13:20 +0100 | |
---|---|---|
committer | 2020-01-06 15:51:11 +0100 | |
commit | 3b722da6672df8392f9c43d7c7e04bddd81d7e37 (patch) | |
tree | 454c0524216882bd5a3840715d2c3540251f380c /lib/test_overflow.c | |
parent | dt-bindings: i2c: at91: fix i2c-sda-hold-time-ns documentation for sam9x60 (diff) | |
download | wireguard-linux-3b722da6672df8392f9c43d7c7e04bddd81d7e37.tar.xz wireguard-linux-3b722da6672df8392f9c43d7c7e04bddd81d7e37.zip |
i2c: bcm2835: Store pointer to bus clock
The commit bebff81fb8b9 ("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: bebff81fb8b9 ("i2c: bcm2835: Model Divider in CCF")
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions