intel-lpss.c (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) intel-lpss.c (9ef18aa8c0ab5f7824b8380536501859af61265d)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Intel Sunrisepoint LPSS core support.
4 *
5 * Copyright (C) 2015, Intel Corporation
6 *
7 * Authors: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
8 * Mika Westerberg <mika.westerberg@linux.intel.com>

--- 446 unchanged lines hidden (view full) ---

455 mfd_remove_devices(dev);
456 intel_lpss_debugfs_remove(lpss);
457 intel_lpss_ltr_hide(lpss);
458 intel_lpss_unregister_clock(lpss);
459 ida_simple_remove(&intel_lpss_devid_ida, lpss->devid);
460}
461EXPORT_SYMBOL_GPL(intel_lpss_remove);
462
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Intel Sunrisepoint LPSS core support.
4 *
5 * Copyright (C) 2015, Intel Corporation
6 *
7 * Authors: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
8 * Mika Westerberg <mika.westerberg@linux.intel.com>

--- 446 unchanged lines hidden (view full) ---

455 mfd_remove_devices(dev);
456 intel_lpss_debugfs_remove(lpss);
457 intel_lpss_ltr_hide(lpss);
458 intel_lpss_unregister_clock(lpss);
459 ida_simple_remove(&intel_lpss_devid_ida, lpss->devid);
460}
461EXPORT_SYMBOL_GPL(intel_lpss_remove);
462
463#ifdef CONFIG_PM
463static int resume_lpss_device(struct device *dev, void *data)
464{
465 if (!dev_pm_test_driver_flags(dev, DPM_FLAG_SMART_SUSPEND))
466 pm_runtime_resume(dev);
467
468 return 0;
469}
470

--- 38 unchanged lines hidden (view full) ---

509
510 /* Restore device context */
511 for (i = 0; i < LPSS_PRIV_REG_COUNT; i++)
512 writel(lpss->priv_ctx[i], lpss->priv + i * 4);
513
514 return 0;
515}
516EXPORT_SYMBOL_GPL(intel_lpss_resume);
464static int resume_lpss_device(struct device *dev, void *data)
465{
466 if (!dev_pm_test_driver_flags(dev, DPM_FLAG_SMART_SUSPEND))
467 pm_runtime_resume(dev);
468
469 return 0;
470}
471

--- 38 unchanged lines hidden (view full) ---

510
511 /* Restore device context */
512 for (i = 0; i < LPSS_PRIV_REG_COUNT; i++)
513 writel(lpss->priv_ctx[i], lpss->priv + i * 4);
514
515 return 0;
516}
517EXPORT_SYMBOL_GPL(intel_lpss_resume);
518#endif
517
518static int __init intel_lpss_init(void)
519{
520 intel_lpss_debugfs = debugfs_create_dir("intel_lpss", NULL);
521 return 0;
522}
523module_init(intel_lpss_init);
524

--- 21 unchanged lines hidden ---
519
520static int __init intel_lpss_init(void)
521{
522 intel_lpss_debugfs = debugfs_create_dir("intel_lpss", NULL);
523 return 0;
524}
525module_init(intel_lpss_init);
526

--- 21 unchanged lines hidden ---