static int __init intel_pm_pci_init(void) { memset(&external_pm_ops, 0x0, sizeof(intel_pm_pci_ops_t)); sema_init(&icepm_lock, 1); pci_set_platform_pm(&pci_pm); return 0; }
static int __init mid_pci_init(void) { const struct x86_cpu_id *id; id = x86_match_cpu(lpss_cpu_ids); if (id) pci_set_platform_pm(&mid_pci_platform_pm); return 0; }
/** * mid_pci_init - It registers callback function for all the PCI devices * for platform specific device power on/shutdown activities. */ static int __init mid_pci_init(void) { int ret = 0; pr_info("mid_pci_init is called\n"); /* register pmu driver call back function for platform specific * set power state for pci devices */ pci_set_platform_pm(&pmu_pci_platform_pm); return ret; }