File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ static void cdns_uart_handle_tx(void *dev_id)
454
454
455
455
if (cdns_uart -> port -> rs485 .flags & SER_RS485_ENABLED &&
456
456
(kfifo_is_empty (& tport -> xmit_fifo ) || uart_tx_stopped (port ))) {
457
- cdns_uart -> tx_timer . function = & cdns_rs485_rx_callback ;
457
+ hrtimer_update_function ( & cdns_uart -> tx_timer , cdns_rs485_rx_callback ) ;
458
458
hrtimer_start (& cdns_uart -> tx_timer ,
459
459
ns_to_ktime (cdns_calc_after_tx_delay (cdns_uart )), HRTIMER_MODE_REL );
460
460
}
@@ -734,7 +734,7 @@ static void cdns_uart_start_tx(struct uart_port *port)
734
734
735
735
if (cdns_uart -> port -> rs485 .flags & SER_RS485_ENABLED ) {
736
736
if (!cdns_uart -> rs485_tx_started ) {
737
- cdns_uart -> tx_timer . function = & cdns_rs485_tx_callback ;
737
+ hrtimer_update_function ( & cdns_uart -> tx_timer , cdns_rs485_tx_callback ) ;
738
738
cdns_rs485_tx_setup (cdns_uart );
739
739
return hrtimer_start (& cdns_uart -> tx_timer ,
740
740
ms_to_ktime (port -> rs485 .delay_rts_before_send ),
You can’t perform that action at this time.
0 commit comments