can: grcan: grcan_probe(): fix broken system id check for errata workaround needs
authorAndreas Larsson <andreas@gaisler.com>
Fri, 29 Apr 2022 08:46:55 +0000 (10:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 10:30:09 +0000 (12:30 +0200)
commitab5adbcead0018e8ae6bd9927fa479b35b4ca73f
tree075fb5b6e7125d74c6f88712f2b0fbc7978b97a6
parent142305ab00e9406b38f30da0cbb44a7b76d503fe
can: grcan: grcan_probe(): fix broken system id check for errata workaround needs

commit 1e93ed26acf03fe6c97c6d573a10178596aadd43 upstream.

The systemid property was checked for in the wrong place of the device
tree and compared to the wrong value.

Fixes: 6cec9b07fe6a ("can: grcan: Add device driver for GRCAN and GRHCAN cores")
Link: https://lore.kernel.org/all/20220429084656.29788-3-andreas@gaisler.com
Cc: stable@vger.kernel.org
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/grcan.c