File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -652,7 +652,7 @@ static int rfkill_rk_probe(struct platform_device *pdev)
652
652
wake_lock_init (& (rfkill -> bt_irq_wl ), WAKE_LOCK_SUSPEND , "rfkill_rk_irq_wl" );
653
653
654
654
ret = rfkill_rk_setup_wake_irq (rfkill , 0 );
655
- if (ret ) goto fail_gpio ;
655
+ if (ret ) goto fail_setup_wake_irq ;
656
656
657
657
DBG ("setup rfkill\n" );
658
658
rfkill -> rfkill_dev = rfkill_alloc (pdata -> name , & pdev -> dev , pdata -> type ,
@@ -690,6 +690,8 @@ static int rfkill_rk_probe(struct platform_device *pdev)
690
690
691
691
remove_proc_entry ("btwrite" , sleep_dir );
692
692
remove_proc_entry ("lpm" , sleep_dir );
693
+ fail_setup_wake_irq :
694
+ wake_lock_destroy (& rfkill -> bt_irq_wl );
693
695
fail_gpio :
694
696
695
697
g_rfkill = NULL ;
@@ -730,7 +732,8 @@ static int rfkill_rk_remove(struct platform_device *pdev)
730
732
if (gpio_is_valid (rfkill -> pdata -> poweron_gpio .io ))
731
733
gpio_free (rfkill -> pdata -> poweron_gpio .io );
732
734
clk_disable_unprepare (rfkill -> pdata -> ext_clk );
733
- g_rfkill = NULL ;
735
+ wake_lock_destroy (& rfkill -> bt_irq_wl );
736
+ g_rfkill = NULL ;
734
737
735
738
return 0 ;
736
739
}
You can’t perform that action at this time.
0 commit comments