intel-lpss-acpi.c (24ee97a9e816a333688141eed2fbbb2d5e60b5d1) | intel-lpss-acpi.c (fd58bb8c7da3c2d4314d7ab76402ca18e9cc0afa) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Intel LPSS ACPI 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> 9 */ 10 11#include <linux/device.h> 12#include <linux/gfp_types.h> 13#include <linux/ioport.h> 14#include <linux/mod_devicetable.h> 15#include <linux/module.h> | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Intel LPSS ACPI 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> 9 */ 10 11#include <linux/device.h> 12#include <linux/gfp_types.h> 13#include <linux/ioport.h> 14#include <linux/mod_devicetable.h> 15#include <linux/module.h> |
16#include <linux/pm.h> |
|
16#include <linux/pm_runtime.h> 17#include <linux/platform_device.h> 18#include <linux/property.h> 19 20#include <linux/pxa2xx_ssp.h> 21 22#include <asm/errno.h> 23 --- 176 unchanged lines hidden (view full) --- 200} 201 202static void intel_lpss_acpi_remove(struct platform_device *pdev) 203{ 204 intel_lpss_remove(&pdev->dev); 205 pm_runtime_disable(&pdev->dev); 206} 207 | 17#include <linux/pm_runtime.h> 18#include <linux/platform_device.h> 19#include <linux/property.h> 20 21#include <linux/pxa2xx_ssp.h> 22 23#include <asm/errno.h> 24 --- 176 unchanged lines hidden (view full) --- 201} 202 203static void intel_lpss_acpi_remove(struct platform_device *pdev) 204{ 205 intel_lpss_remove(&pdev->dev); 206 pm_runtime_disable(&pdev->dev); 207} 208 |
208static INTEL_LPSS_PM_OPS(intel_lpss_acpi_pm_ops); 209 | |
210static struct platform_driver intel_lpss_acpi_driver = { 211 .probe = intel_lpss_acpi_probe, 212 .remove_new = intel_lpss_acpi_remove, 213 .driver = { 214 .name = "intel-lpss", 215 .acpi_match_table = intel_lpss_acpi_ids, | 209static struct platform_driver intel_lpss_acpi_driver = { 210 .probe = intel_lpss_acpi_probe, 211 .remove_new = intel_lpss_acpi_remove, 212 .driver = { 213 .name = "intel-lpss", 214 .acpi_match_table = intel_lpss_acpi_ids, |
216 .pm = &intel_lpss_acpi_pm_ops, | 215 .pm = pm_ptr(&intel_lpss_pm_ops), |
217 }, 218}; 219 220module_platform_driver(intel_lpss_acpi_driver); 221 222MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>"); 223MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>"); 224MODULE_DESCRIPTION("Intel LPSS ACPI driver"); 225MODULE_LICENSE("GPL v2"); 226MODULE_IMPORT_NS(INTEL_LPSS); | 216 }, 217}; 218 219module_platform_driver(intel_lpss_acpi_driver); 220 221MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>"); 222MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>"); 223MODULE_DESCRIPTION("Intel LPSS ACPI driver"); 224MODULE_LICENSE("GPL v2"); 225MODULE_IMPORT_NS(INTEL_LPSS); |