File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -510,15 +510,13 @@ static int samsung_keypad_suspend(struct device *dev)
510
510
struct samsung_keypad * keypad = platform_get_drvdata (pdev );
511
511
struct input_dev * input_dev = keypad -> input_dev ;
512
512
513
- mutex_lock (& input_dev -> mutex );
513
+ guard ( mutex ) (& input_dev -> mutex );
514
514
515
515
if (input_device_enabled (input_dev ))
516
516
samsung_keypad_stop (keypad );
517
517
518
518
samsung_keypad_toggle_wakeup (keypad , true);
519
519
520
- mutex_unlock (& input_dev -> mutex );
521
-
522
520
return 0 ;
523
521
}
524
522
@@ -528,15 +526,13 @@ static int samsung_keypad_resume(struct device *dev)
528
526
struct samsung_keypad * keypad = platform_get_drvdata (pdev );
529
527
struct input_dev * input_dev = keypad -> input_dev ;
530
528
531
- mutex_lock (& input_dev -> mutex );
529
+ guard ( mutex ) (& input_dev -> mutex );
532
530
533
531
samsung_keypad_toggle_wakeup (keypad , false);
534
532
535
533
if (input_device_enabled (input_dev ))
536
534
samsung_keypad_start (keypad );
537
535
538
- mutex_unlock (& input_dev -> mutex );
539
-
540
536
return 0 ;
541
537
}
542
538
You can’t perform that action at this time.
0 commit comments