diff --git a/arch/arm/src/kinetis/kinetis_lpserial.c b/arch/arm/src/kinetis/kinetis_lpserial.c index fa37bf5508..2980f18b8d 100644 --- a/arch/arm/src/kinetis/kinetis_lpserial.c +++ b/arch/arm/src/kinetis/kinetis_lpserial.c @@ -474,7 +474,7 @@ static void kinetis_detach(struct uart_dev_s *dev) static int kinetis_interrupt(int irq, void *context, void *arg) { - struct uart_dev_s *dev = (struct uart_dev_s *dev)arg; + struct uart_dev_s *dev = (struct uart_dev_s *)arg; struct kinetis_dev_s *priv; uint32_t stat; uint32_t ctrl;