Commit 0c39e1e8 authored by Annaliese McDermond's avatar Annaliese McDermond Committed by popcornmix
Browse files

i2c: bcm2835: Move IRQ request after clock code in probe



Commit 4a5cfa39 upstream.

If any of the clock code in the probe fails and returns, the IRQ
will not be freed.  Moving the IRQ request to last allows it to
be freed on any errors further up in the probe function.  devm_
calls can apparently not be used because there are some potential
race conditions that will arise.

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 8c1a7c94
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment