intel-lpss-pci.c (24ee97a9e816a333688141eed2fbbb2d5e60b5d1) | intel-lpss-pci.c (fd58bb8c7da3c2d4314d7ab76402ca18e9cc0afa) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Intel LPSS PCI 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/mod_devicetable.h> 14#include <linux/module.h> 15#include <linux/pci.h> | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Intel LPSS PCI 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/mod_devicetable.h> 14#include <linux/module.h> 15#include <linux/pci.h> |
16#include <linux/pm.h> |
|
16#include <linux/pm_runtime.h> 17#include <linux/property.h> 18 19#include <linux/pxa2xx_ssp.h> 20 21#include <asm/errno.h> 22 23#include "intel-lpss.h" --- 52 unchanged lines hidden (view full) --- 76static void intel_lpss_pci_remove(struct pci_dev *pdev) 77{ 78 pm_runtime_forbid(&pdev->dev); 79 pm_runtime_get_sync(&pdev->dev); 80 81 intel_lpss_remove(&pdev->dev); 82} 83 | 17#include <linux/pm_runtime.h> 18#include <linux/property.h> 19 20#include <linux/pxa2xx_ssp.h> 21 22#include <asm/errno.h> 23 24#include "intel-lpss.h" --- 52 unchanged lines hidden (view full) --- 77static void intel_lpss_pci_remove(struct pci_dev *pdev) 78{ 79 pm_runtime_forbid(&pdev->dev); 80 pm_runtime_get_sync(&pdev->dev); 81 82 intel_lpss_remove(&pdev->dev); 83} 84 |
84static INTEL_LPSS_PM_OPS(intel_lpss_pci_pm_ops); 85 | |
86static const struct property_entry spt_spi_properties[] = { 87 PROPERTY_ENTRY_U32("intel,spi-pxa2xx-type", LPSS_SPT_SSP), 88 { } 89}; 90 91static const struct software_node spt_spi_node = { 92 .properties = spt_spi_properties, 93}; --- 494 unchanged lines hidden (view full) --- 588MODULE_DEVICE_TABLE(pci, intel_lpss_pci_ids); 589 590static struct pci_driver intel_lpss_pci_driver = { 591 .name = "intel-lpss", 592 .id_table = intel_lpss_pci_ids, 593 .probe = intel_lpss_pci_probe, 594 .remove = intel_lpss_pci_remove, 595 .driver = { | 85static const struct property_entry spt_spi_properties[] = { 86 PROPERTY_ENTRY_U32("intel,spi-pxa2xx-type", LPSS_SPT_SSP), 87 { } 88}; 89 90static const struct software_node spt_spi_node = { 91 .properties = spt_spi_properties, 92}; --- 494 unchanged lines hidden (view full) --- 587MODULE_DEVICE_TABLE(pci, intel_lpss_pci_ids); 588 589static struct pci_driver intel_lpss_pci_driver = { 590 .name = "intel-lpss", 591 .id_table = intel_lpss_pci_ids, 592 .probe = intel_lpss_pci_probe, 593 .remove = intel_lpss_pci_remove, 594 .driver = { |
596 .pm = &intel_lpss_pci_pm_ops, | 595 .pm = pm_ptr(&intel_lpss_pm_ops), |
597 }, 598}; 599 600module_pci_driver(intel_lpss_pci_driver); 601 602MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>"); 603MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>"); 604MODULE_DESCRIPTION("Intel LPSS PCI driver"); 605MODULE_LICENSE("GPL v2"); 606MODULE_IMPORT_NS(INTEL_LPSS); | 596 }, 597}; 598 599module_pci_driver(intel_lpss_pci_driver); 600 601MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>"); 602MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>"); 603MODULE_DESCRIPTION("Intel LPSS PCI driver"); 604MODULE_LICENSE("GPL v2"); 605MODULE_IMPORT_NS(INTEL_LPSS); |