File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -1564,6 +1564,7 @@ static int cdns_uart_probe(struct platform_device *pdev)
1564
1564
goto err_out_id ;
1565
1565
}
1566
1566
1567
+ uartps_major = cdns_uart_uart_driver -> tty_driver -> major ;
1567
1568
cdns_uart_data -> cdns_uart_driver = cdns_uart_uart_driver ;
1568
1569
1569
1570
/*
@@ -1694,7 +1695,6 @@ static int cdns_uart_probe(struct platform_device *pdev)
1694
1695
console_port = NULL ;
1695
1696
#endif
1696
1697
1697
- uartps_major = cdns_uart_uart_driver -> tty_driver -> major ;
1698
1698
cdns_uart_data -> cts_override = of_property_read_bool (pdev -> dev .of_node ,
1699
1699
"cts-override" );
1700
1700
return 0 ;
@@ -1756,12 +1756,6 @@ static int cdns_uart_remove(struct platform_device *pdev)
1756
1756
console_port = NULL ;
1757
1757
#endif
1758
1758
1759
- /* If this is last instance major number should be initialized */
1760
- mutex_lock (& bitmap_lock );
1761
- if (bitmap_empty (bitmap , MAX_UART_INSTANCES ))
1762
- uartps_major = 0 ;
1763
- mutex_unlock (& bitmap_lock );
1764
-
1765
1759
uart_unregister_driver (cdns_uart_data -> cdns_uart_driver );
1766
1760
return rc ;
1767
1761
}
You can’t perform that action at this time.
0 commit comments