Skip to content
Commit c656b653 authored by Annaliese McDermond's avatar Annaliese McDermond Committed by Phil Elwell
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 2e2fcd48
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