mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
The LVDS init code looks up an I2C adapter using i2c_get_adapter() and
tries to read the EDID before falling back to allocating and registering
its own adapter.
Make sure to drop the references taken by i2c_get_adapter() when falling
back to allocating an adapter as well as on late errors to allow the
looked up adapter to be deregistered.
Fixes: 1b082ccf59 ("gma500: Add Oaktrail support")
Cc: [email protected] # 3.3
Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: Patrik Jakobsson <[email protected]>
Link: https://patch.msgid.link/[email protected]