Skip to content

Commit 1b2a34f

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI: LPSS: Remove nested ifdeffery for CONFIG_PM
There is no need to have the ifdef CONFIG_PM to be nested. The second and so on will obviously become a no-op. Remove redundant nested ifdeffery. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 07b73ee commit 1b2a34f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/acpi/acpi_lpss.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,10 +887,8 @@ static int acpi_lpss_activate(struct device *dev)
887887
if (pdata->dev_desc->flags & (LPSS_SAVE_CTX | LPSS_SAVE_CTX_ONCE))
888888
lpss_deassert_reset(pdata);
889889

890-
#ifdef CONFIG_PM
891890
if (pdata->dev_desc->flags & LPSS_SAVE_CTX_ONCE)
892891
acpi_lpss_save_ctx(dev, pdata);
893-
#endif
894892

895893
return 0;
896894
}

0 commit comments

Comments
 (0)