Commit 5fe9a7e6 authored by Tomislav Milkovic's avatar Tomislav Milkovic Committed by Dan Kalowsky
Browse files

drivers: can: can_tcan4x5x: fix compiler build warning/error

Fix compiler warning when optional property reset-gpios
is not supplied in the ti,tcan4x5x-compatible device tree
node

Signed-off-by: default avatarTomislav Milkovic <tomislav.milkovic95@gmail.com>
(cherry picked from commit fb98387f)
parent a1eb8500
Loading
Loading
Loading
Loading
+2 −0
Changes for drivers/can/can_tcan4x5x.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -508,8 +508,10 @@ static int tcan4x5x_wake(const struct device *dev)

static int tcan4x5x_reset(const struct device *dev)
{
#if TCAN4X5X_RST_GPIO_SUPPORT
	const struct can_mcan_config *mcan_config = dev->config;
	const struct tcan4x5x_config *tcan_config = mcan_config->custom;
#endif /* TCAN4X5X_RST_GPIO_SUPPORT */
	int err;

	err = tcan4x5x_wake(dev);