File tree Expand file tree Collapse file tree 14 files changed +3
-31
lines changed Expand file tree Collapse file tree 14 files changed +3
-31
lines changed Original file line number Diff line number Diff line change @@ -703,7 +703,6 @@ static int ar933x_uart_remove(struct platform_device *pdev)
703
703
struct ar933x_uart_port * up ;
704
704
705
705
up = platform_get_drvdata (pdev );
706
- platform_set_drvdata (pdev , NULL );
707
706
708
707
if (up ) {
709
708
uart_remove_one_port (& ar933x_uart_driver , & up -> port );
Original file line number Diff line number Diff line change @@ -1860,7 +1860,6 @@ static int atmel_serial_remove(struct platform_device *pdev)
1860
1860
int ret = 0 ;
1861
1861
1862
1862
device_init_wakeup (& pdev -> dev , 0 );
1863
- platform_set_drvdata (pdev , NULL );
1864
1863
1865
1864
ret = uart_remove_one_port (& atmel_uart , port );
1866
1865
Original file line number Diff line number Diff line change @@ -852,7 +852,6 @@ static int bcm_uart_remove(struct platform_device *pdev)
852
852
853
853
port = platform_get_drvdata (pdev );
854
854
uart_remove_one_port (& bcm_uart_driver , port );
855
- platform_set_drvdata (pdev , NULL );
856
855
/* mark port as free */
857
856
ports [pdev -> id ].membase = 0 ;
858
857
return 0 ;
Original file line number Diff line number Diff line change @@ -438,8 +438,7 @@ static int uart_clps711x_probe(struct platform_device *pdev)
438
438
s -> uart_clk = devm_clk_get (& pdev -> dev , "uart" );
439
439
if (IS_ERR (s -> uart_clk )) {
440
440
dev_err (& pdev -> dev , "Can't get UART clocks\n" );
441
- ret = PTR_ERR (s -> uart_clk );
442
- goto err_out ;
441
+ return PTR_ERR (s -> uart_clk );
443
442
}
444
443
445
444
s -> uart .owner = THIS_MODULE ;
@@ -461,7 +460,7 @@ static int uart_clps711x_probe(struct platform_device *pdev)
461
460
if (ret ) {
462
461
dev_err (& pdev -> dev , "Registering UART driver failed\n" );
463
462
devm_clk_put (& pdev -> dev , s -> uart_clk );
464
- goto err_out ;
463
+ return ret ;
465
464
}
466
465
467
466
for (i = 0 ; i < UART_CLPS711X_NR ; i ++ ) {
@@ -478,11 +477,6 @@ static int uart_clps711x_probe(struct platform_device *pdev)
478
477
}
479
478
480
479
return 0 ;
481
-
482
- err_out :
483
- platform_set_drvdata (pdev , NULL );
484
-
485
- return ret ;
486
480
}
487
481
488
482
static int uart_clps711x_remove (struct platform_device * pdev )
@@ -495,7 +489,6 @@ static int uart_clps711x_remove(struct platform_device *pdev)
495
489
496
490
devm_clk_put (& pdev -> dev , s -> uart_clk );
497
491
uart_unregister_driver (& s -> uart );
498
- platform_set_drvdata (pdev , NULL );
499
492
500
493
return 0 ;
501
494
}
Original file line number Diff line number Diff line change @@ -778,8 +778,6 @@ static int efm32_uart_remove(struct platform_device *pdev)
778
778
{
779
779
struct efm32_uart_port * efm_port = platform_get_drvdata (pdev );
780
780
781
- platform_set_drvdata (pdev , NULL );
782
-
783
781
uart_remove_one_port (& efm32_uart_reg , & efm_port -> port );
784
782
785
783
if (pdev -> id >= 0 && pdev -> id < ARRAY_SIZE (efm32_uart_ports ))
Original file line number Diff line number Diff line change @@ -1596,8 +1596,6 @@ static int serial_imx_remove(struct platform_device *pdev)
1596
1596
1597
1597
pdata = pdev -> dev .platform_data ;
1598
1598
1599
- platform_set_drvdata (pdev , NULL );
1600
-
1601
1599
uart_remove_one_port (& imx_reg , & sport -> port );
1602
1600
1603
1601
if (pdata && pdata -> exit )
Original file line number Diff line number Diff line change @@ -693,8 +693,6 @@ static int serial_netx_remove(struct platform_device *pdev)
693
693
{
694
694
struct netx_port * sport = platform_get_drvdata (pdev );
695
695
696
- platform_set_drvdata (pdev , NULL );
697
-
698
696
if (sport )
699
697
uart_remove_one_port (& netx_reg , & sport -> port );
700
698
Original file line number Diff line number Diff line change @@ -1798,7 +1798,6 @@ static int __exit pmz_detach(struct platform_device *pdev)
1798
1798
1799
1799
uart_remove_one_port (& pmz_uart_reg , & uap -> port );
1800
1800
1801
- platform_set_drvdata (pdev , NULL );
1802
1801
uap -> port .dev = NULL ;
1803
1802
1804
1803
return 0 ;
Original file line number Diff line number Diff line change @@ -801,8 +801,6 @@ static int pnx8xxx_serial_remove(struct platform_device *pdev)
801
801
{
802
802
struct pnx8xxx_port * sport = platform_get_drvdata (pdev );
803
803
804
- platform_set_drvdata (pdev , NULL );
805
-
806
804
if (sport )
807
805
uart_remove_one_port (& pnx8xxx_reg , & sport -> port );
808
806
Original file line number Diff line number Diff line change @@ -945,8 +945,6 @@ static int serial_pxa_remove(struct platform_device *dev)
945
945
{
946
946
struct uart_pxa_port * sport = platform_get_drvdata (dev );
947
947
948
- platform_set_drvdata (dev , NULL );
949
-
950
948
uart_remove_one_port (& serial_pxa_reg , & sport -> port );
951
949
952
950
clk_unprepare (sport -> clk );
Original file line number Diff line number Diff line change @@ -864,8 +864,6 @@ static int sa1100_serial_remove(struct platform_device *pdev)
864
864
{
865
865
struct sa1100_port * sport = platform_get_drvdata (pdev );
866
866
867
- platform_set_drvdata (pdev , NULL );
868
-
869
867
if (sport )
870
868
uart_remove_one_port (& sa1100_reg , & sport -> port );
871
869
Original file line number Diff line number Diff line change @@ -997,8 +997,6 @@ static int sccnxp_probe(struct platform_device *pdev)
997
997
}
998
998
999
999
err_out :
1000
- platform_set_drvdata (pdev , NULL );
1001
-
1002
1000
return ret ;
1003
1001
}
1004
1002
@@ -1016,7 +1014,6 @@ static int sccnxp_remove(struct platform_device *pdev)
1016
1014
uart_remove_one_port (& s -> uart , & s -> port [i ]);
1017
1015
1018
1016
uart_unregister_driver (& s -> uart );
1019
- platform_set_drvdata (pdev , NULL );
1020
1017
1021
1018
if (!IS_ERR (s -> regulator ))
1022
1019
return regulator_disable (s -> regulator );
Original file line number Diff line number Diff line change @@ -717,7 +717,6 @@ int sirfsoc_uart_probe(struct platform_device *pdev)
717
717
clk_disable_unprepare (sirfport -> clk );
718
718
clk_put (sirfport -> clk );
719
719
clk_err :
720
- platform_set_drvdata (pdev , NULL );
721
720
if (sirfport -> hw_flow_ctrl )
722
721
pinctrl_put (sirfport -> p );
723
722
err :
@@ -728,7 +727,7 @@ static int sirfsoc_uart_remove(struct platform_device *pdev)
728
727
{
729
728
struct sirfsoc_uart_port * sirfport = platform_get_drvdata (pdev );
730
729
struct uart_port * port = & sirfport -> port ;
731
- platform_set_drvdata ( pdev , NULL );
730
+
732
731
if (sirfport -> hw_flow_ctrl )
733
732
pinctrl_put (sirfport -> p );
734
733
clk_disable_unprepare (sirfport -> clk );
Original file line number Diff line number Diff line change @@ -630,7 +630,6 @@ static int vt8500_serial_remove(struct platform_device *pdev)
630
630
{
631
631
struct vt8500_port * vt8500_port = platform_get_drvdata (pdev );
632
632
633
- platform_set_drvdata (pdev , NULL );
634
633
clk_disable_unprepare (vt8500_port -> clk );
635
634
uart_remove_one_port (& vt8500_uart_driver , & vt8500_port -> uart );
636
635
You can’t perform that action at this time.
0 commit comments