@@ -63,7 +63,6 @@ static struct uart_port *console_port;
63
63
struct uartlite_data {
64
64
const struct uartlite_reg_ops * reg_ops ;
65
65
struct clk * clk ;
66
- struct uart_driver * ulite_uart_driver ;
67
66
};
68
67
69
68
struct uartlite_reg_ops {
@@ -695,9 +694,7 @@ static int ulite_release(struct device *dev)
695
694
int rc = 0 ;
696
695
697
696
if (port ) {
698
- struct uartlite_data * pdata = port -> private_data ;
699
-
700
- rc = uart_remove_one_port (pdata -> ulite_uart_driver , port );
697
+ rc = uart_remove_one_port (& ulite_uart_driver , port );
701
698
dev_set_drvdata (dev , NULL );
702
699
port -> mapbase = 0 ;
703
700
}
@@ -715,11 +712,8 @@ static int __maybe_unused ulite_suspend(struct device *dev)
715
712
{
716
713
struct uart_port * port = dev_get_drvdata (dev );
717
714
718
- if (port ) {
719
- struct uartlite_data * pdata = port -> private_data ;
720
-
721
- uart_suspend_port (pdata -> ulite_uart_driver , port );
722
- }
715
+ if (port )
716
+ uart_suspend_port (& ulite_uart_driver , port );
723
717
724
718
return 0 ;
725
719
}
@@ -734,11 +728,8 @@ static int __maybe_unused ulite_resume(struct device *dev)
734
728
{
735
729
struct uart_port * port = dev_get_drvdata (dev );
736
730
737
- if (port ) {
738
- struct uartlite_data * pdata = port -> private_data ;
739
-
740
- uart_resume_port (pdata -> ulite_uart_driver , port );
741
- }
731
+ if (port )
732
+ uart_resume_port (& ulite_uart_driver , port );
742
733
743
734
return 0 ;
744
735
}
@@ -813,7 +804,6 @@ static int ulite_probe(struct platform_device *pdev)
813
804
pdata -> clk = NULL ;
814
805
}
815
806
816
- pdata -> ulite_uart_driver = & ulite_uart_driver ;
817
807
ret = clk_prepare_enable (pdata -> clk );
818
808
if (ret ) {
819
809
dev_err (& pdev -> dev , "Failed to prepare clock\n" );
0 commit comments