i2c: sh7760: fix IRQ error path
authorSergey Shtylyov <s.shtylyov@omprussia.ru>
Sat, 17 Apr 2021 19:05:05 +0000 (22:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 May 2021 08:40:27 +0000 (10:40 +0200)
commite79848e21917751d631e9b9298236caa35c5e231
tree761de8e4c738a2db83bb63f7cb6aadb0d3c59336
parent284957e944bb7bbdb71c461550e2b17e01854d0a
i2c: sh7760: fix IRQ error path

[ Upstream commit 92dfb27240fea2776f61c5422472cb6defca7767 ]

While adding the invalid IRQ check after calling platform_get_irq(),
I managed to overlook that the driver has a complex error path in its
probe() method, thus a simple *return* couldn't be used.  Use a proper
*goto* instead!

Fixes: e5b2e3e74201 ("i2c: sh7760: add IRQ check")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-sh7760.c