diff options
| -rw-r--r-- | drivers/mfd/rtsx_usb.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/mfd/rtsx_usb.c b/drivers/mfd/rtsx_usb.c index dbdd0faeb6ce..210d1f85679e 100644 --- a/drivers/mfd/rtsx_usb.c +++ b/drivers/mfd/rtsx_usb.c | |||
| @@ -681,21 +681,9 @@ static void rtsx_usb_disconnect(struct usb_interface *intf) | |||
| 681 | #ifdef CONFIG_PM | 681 | #ifdef CONFIG_PM |
| 682 | static int rtsx_usb_suspend(struct usb_interface *intf, pm_message_t message) | 682 | static int rtsx_usb_suspend(struct usb_interface *intf, pm_message_t message) |
| 683 | { | 683 | { |
| 684 | struct rtsx_ucr *ucr = | ||
| 685 | (struct rtsx_ucr *)usb_get_intfdata(intf); | ||
| 686 | |||
| 687 | dev_dbg(&intf->dev, "%s called with pm message 0x%04x\n", | 684 | dev_dbg(&intf->dev, "%s called with pm message 0x%04x\n", |
| 688 | __func__, message.event); | 685 | __func__, message.event); |
| 689 | 686 | ||
| 690 | /* | ||
| 691 | * Call to make sure LED is off during suspend to save more power. | ||
| 692 | * It is NOT a permanent state and could be turned on anytime later. | ||
| 693 | * Thus no need to call turn_on when resunming. | ||
| 694 | */ | ||
| 695 | mutex_lock(&ucr->dev_mutex); | ||
| 696 | rtsx_usb_turn_off_led(ucr); | ||
| 697 | mutex_unlock(&ucr->dev_mutex); | ||
| 698 | |||
| 699 | return 0; | 687 | return 0; |
| 700 | } | 688 | } |
| 701 | 689 | ||
