can: rcar_can: Fix erroneous registration
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>
Mon, 10 Sep 2018 10:43:13 +0000 (11:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:16:10 +0000 (09:16 +0100)
commit0e3e8e31877a043c0180f2a011bae22db509d67f
tree71df23d66fcbfcfd817dc5886a8b9db45c8ad6b0
parent1f329e64e1f1d8b24d47d804afb2ae8e4ddc83fe
can: rcar_can: Fix erroneous registration

[ Upstream commit 68c8d209cd4337da4fa04c672f0b62bb735969bc ]

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: 862e2b6af9413b43 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/rcar/rcar_can.c