]> git.baikalelectronics.ru Git - kernel.git/commit
can: rcar_canfd: rcar_canfd_channel_probe(): register the CAN device when fully ready
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 21 Feb 2022 22:59:35 +0000 (22:59 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 25 Feb 2022 16:46:54 +0000 (17:46 +0100)
commitc5048a7b2c23ab589f3476a783bd586b663eda5b
tree1acba004c729e50d0d4e1c196b6d0107388bac57
parent035b0fcf02707d3c9c2890dc1484b11aa5335eb1
can: rcar_canfd: rcar_canfd_channel_probe(): register the CAN device when fully ready

Register the CAN device only when all the necessary initialization is
completed. This patch makes sure all the data structures and locks are
initialized before registering the CAN device.

Link: https://lore.kernel.org/all/20220221225935.12300-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Pavel Machek <pavel@denx.de>
Reviewed-by: Ulrich Hecht <uli+renesas@fpond.eu>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/rcar/rcar_canfd.c