Re: [PATCH] gpio: max732x: add error handling for i2c_new_dummy

From: Linus Walleij
Date: Thu Jun 14 2018 - 10:27:33 EST


On Tue, Jun 12, 2018 at 5:28 AM, Zhouyang Jia <jiazhouyang09@xxxxxxxxx> wrote:

> When i2c_new_dummy fails, the lack of error-handling code may
> cause unexpected results.
>
> This patch adds error-handling code after calling i2c_new_dummy.
>
> Signed-off-by: Zhouyang Jia <jiazhouyang09@xxxxxxxxx>

Patch applied for non-critical fixes.

Yours,
Linus Walleij