]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: sh7760: fix IRQ error path
authorSergey Shtylyov <s.shtylyov@omprussia.ru>
Sat, 17 Apr 2021 19:05:05 +0000 (22:05 +0300)
committerWolfram Sang <wsa@kernel.org>
Sat, 17 Apr 2021 20:00:58 +0000 (22:00 +0200)
commit150e7ce0981f7c0bcbe3a0e7b6d60bb5ee8cf663
tree1e65b94247ceb648371286b76d8984e9d1abbd99
parent80238008ccbce3e0c7b338a2f9828d250b811303
i2c: sh7760: fix IRQ error path

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: 89f759065ce4 ("i2c: sh7760: add IRQ check")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-sh7760.c