diff options
author | Stefan Wahren <wahrenst@gmx.net> | 2020-01-04 16:13:20 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2020-01-06 15:51:11 +0100 |
commit | 3b722da6672df8392f9c43d7c7e04bddd81d7e37 (patch) | |
tree | 454c0524216882bd5a3840715d2c3540251f380c /sound/sh | |
parent | 42052d96ae59a702a0b71fafde69fe2cbee23a0e (diff) |
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 'sound/sh')
0 files changed, 0 insertions, 0 deletions