Re: [PATCH] can: mcp251x: fix error handling code in mcp251x_can_probe

From: Andy Shevchenko
Date: Mon Oct 24 2022 - 04:10:50 EST


On Mon, Oct 24, 2022 at 01:37:07PM +0800, Dongliang Mu wrote:
> In mcp251x_can_probe, if mcp251x_gpio_setup fails, it forgets to
> unregister the can device.
>
> Fix this by unregistering can device in mcp251x_can_probe.

Fixes tag?

--
With Best Regards,
Andy Shevchenko