Skip to content
Commit 9b3199ca authored by Joerg Schambacher's avatar Joerg Schambacher Committed by popcornmix
Browse files

Fixes a problem when module probes before i2c module is available



The driver crashed while a NULL pointer returned by i2c_get_adapter()
has been used to access the i2c bus functions.
The headphone probing function hb_hp_probe() now returns -EPROBE_DEFER
in case the i2c module has not been loaded yet.

Signed-off-by: default avatarJoerg Schambacher <joerg@i2audio.com>
parent cafc4e8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment