i2c: i801: unregister tco_pdev in i801_probe() error path
commit 39147845 upstream. We have to unregister tco_pdev also if i2c_add_adapter() fails. Fixes: 94246930 ("i2c: i801: Create iTCO device on newer Intel PCHs") Cc: stable@vger.kernel.org Signed-off-by:Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by:
Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by:
Jean Delvare <jdelvare@suse.de> Signed-off-by:
Wolfram Sang <wsa@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
parent
a4ecd856
Please register or sign in to comment