]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcp251xfd: mcp251xfd_chip_start(): fix error handling for mcp251xfd_chip_rx_int_...
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 19 Oct 2021 15:00:04 +0000 (17:00 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 6 Nov 2021 20:25:25 +0000 (21:25 +0100)
commit444a480945800f1671f65e6f7cbae3bec22d741c
tree8d65c4ca75dd91f704853d8eb6ba1dc42a5d7904
parent6cc4fc3620ffe063a84adea538ee113d6f444a6b
can: mcp251xfd: mcp251xfd_chip_start(): fix error handling for mcp251xfd_chip_rx_int_enable()

This patch fixes the error handling for mcp251xfd_chip_rx_int_enable().
Instead just returning the error, properly shut down the chip.

Link: https://lore.kernel.org/all/20211106201526.44292-2-mkl@pengutronix.de
Fixes: 9afc4ad0aed9 ("can: mcp25xxfd: add driver for Microchip MCP25xxFD SPI CAN")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c