Skip to content
Commit 92dfb272 authored by Sergey Shtylyov's avatar Sergey Shtylyov Committed by Wolfram Sang
Browse files

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: e5b2e3e7 ("i2c: sh7760: add IRQ check")
Signed-off-by: default avatarSergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 8f51c176
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment