diff options
-rw-r--r-- | drivers/acpi/acpi_lpss.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c index f6b71afb80ea..4804ae31b057 100644 --- a/drivers/acpi/acpi_lpss.c +++ b/drivers/acpi/acpi_lpss.c | |||
@@ -659,19 +659,17 @@ static int acpi_lpss_platform_notify(struct notifier_block *nb, | |||
659 | } | 659 | } |
660 | 660 | ||
661 | switch (action) { | 661 | switch (action) { |
662 | case BUS_NOTIFY_BOUND_DRIVER: | ||
663 | pdev->dev.pm_domain = &acpi_lpss_pm_domain; | ||
664 | break; | ||
665 | case BUS_NOTIFY_UNBOUND_DRIVER: | ||
666 | pdev->dev.pm_domain = NULL; | ||
667 | break; | ||
668 | case BUS_NOTIFY_ADD_DEVICE: | 662 | case BUS_NOTIFY_ADD_DEVICE: |
663 | pdev->dev.pm_domain = &acpi_lpss_pm_domain; | ||
669 | if (pdata->dev_desc->flags & LPSS_LTR) | 664 | if (pdata->dev_desc->flags & LPSS_LTR) |
670 | return sysfs_create_group(&pdev->dev.kobj, | 665 | return sysfs_create_group(&pdev->dev.kobj, |
671 | &lpss_attr_group); | 666 | &lpss_attr_group); |
667 | break; | ||
672 | case BUS_NOTIFY_DEL_DEVICE: | 668 | case BUS_NOTIFY_DEL_DEVICE: |
673 | if (pdata->dev_desc->flags & LPSS_LTR) | 669 | if (pdata->dev_desc->flags & LPSS_LTR) |
674 | sysfs_remove_group(&pdev->dev.kobj, &lpss_attr_group); | 670 | sysfs_remove_group(&pdev->dev.kobj, &lpss_attr_group); |
671 | pdev->dev.pm_domain = NULL; | ||
672 | break; | ||
675 | default: | 673 | default: |
676 | break; | 674 | break; |
677 | } | 675 | } |