i2c: acpi: put device when verifying client fails
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 12 Mar 2020 13:32:44 +0000 (14:32 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 13 Mar 2020 14:15:30 +0000 (15:15 +0100)
commit8daee952b4389729358665fb91949460641659d4
treedbba6006981938c978f253aecf0309f471b9ee53
parent3747cd2efe7ecb9604972285ab3f60c96cb753a8
i2c: acpi: put device when verifying client fails

i2c_verify_client() can fail, so we need to put the device when that
happens.

Fixes: 525e6fabeae2 ("i2c / ACPI: add support for ACPI reconfigure notifications")
Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-acpi.c