-
由 Vladimir Zapolskiy 提交于
If i2c_add_adapter() fails to add an I2C adapter found on QCOM CCI controller, on error path i2c_del_adapter() is still called. Fortunately there is a sanity check in the I2C core, so the only visible implication is a printed debug level message: i2c-core: attempting to delete unregistered adapter [Qualcomm-CCI] Nevertheless it would be reasonable to correct the probe error path. Fixes: e5175261 ("i2c: Add Qualcomm CCI I2C driver") Signed-off-by: NVladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Reviewed-by: NRobert Foss <robert.foss@linaro.org> Reviewed-by: NBjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: NWolfram Sang <wsa@kernel.org>a0d48505