Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
can: mcp251x: mcp251x_can_probe(): add missing unregister_candev() in…
… error path 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: 2d52dab ("can: mcp251x: add GPIO support") Signed-off-by: Dongliang Mu <[email protected]> Link: https://lore.kernel.org/all/[email protected] [mkl: adjust label] Signed-off-by: Marc Kleine-Budde <[email protected]>
- Loading branch information