Skip to content
Commit 6f6b35e1 authored by Jean Delvare's avatar Jean Delvare
Browse files

macintosh: Don't assume i2c device probing always succeeds



If i2c device probing fails, then there is no driver to dereference
after calling i2c_new_device(). Stop assuming that probing will always
succeed, to avoid NULL pointer dereferences. We have an easier access
to the driver anyway.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Tested-by: default avatarTim Shepard <shep@alum.mit.edu>
Cc: Colin Leroy <colin@colino.net>
parent 18669eab
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