Skip to content

Commit

Permalink
drivers: can: can_tcan4x5x: fix compiler build warning/error
Browse files Browse the repository at this point in the history
Fix compiler warning when optional property reset-gpios
is not supplied in the ti,tcan4x5x-compatible device tree
node

Signed-off-by: Tomislav Milkovic <[email protected]>
(cherry picked from commit fb98387)
  • Loading branch information
tmilkovic51 authored and github-actions[bot] committed Jan 22, 2025
1 parent 7d2ac02 commit c9e487f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/can/can_tcan4x5x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c9e487f

Please sign in to comment.