mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
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>
This commit is contained in:
parent
07b73ee599
commit
1b2a34f20b
@ -887,10 +887,8 @@ static int acpi_lpss_activate(struct device *dev)
|
||||
if (pdata->dev_desc->flags & (LPSS_SAVE_CTX | LPSS_SAVE_CTX_ONCE))
|
||||
lpss_deassert_reset(pdata);
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
if (pdata->dev_desc->flags & LPSS_SAVE_CTX_ONCE)
|
||||
acpi_lpss_save_ctx(dev, pdata);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user