]> git.baikalelectronics.ru Git - kernel.git/commit
can: rcar_can: Fix erroneous registration
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>
Mon, 10 Sep 2018 10:43:13 +0000 (11:43 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 9 Nov 2018 16:20:08 +0000 (17:20 +0100)
commit97de9903ad7a4ef7bf7c4c4b5a4f196433493668
tree97bd375e9d31fa114418ac7b8e264b90286bcd77
parent66b3e1e218b680cee7f165e5ccc9948b6d43c392
can: rcar_can: Fix erroneous registration

Assigning 2 to "renesas,can-clock-select" tricks the driver into
registering the CAN interface, even though we don't want that.
This patch improves one of the checks to prevent that from happening.

Fixes: 9f8e8b0ca7ae89af ("can: rcar_can: support all input clocks")
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Chris Paterson <Chris.Paterson2@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/rcar/rcar_can.c