Skip to content

Commit

Permalink
PM / Intel IOMMU: Fix init_iommu_pm_ops() for CONFIG_PM unset
Browse files Browse the repository at this point in the history
If CONFIG_PM is not set, init_iommu_pm_ops() introduced by commit
134fac3 (PCI / Intel IOMMU: Use
syscore_ops instead of sysdev class and sysdev) is not defined
appropriately.  Fix this issue.

Reported-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
Rafael J. Wysocki committed Jun 7, 2011
1 parent 59c5f46 commit 99592ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3388,7 +3388,7 @@ static void __init init_iommu_pm_ops(void)
}

#else
static inline int init_iommu_pm_ops(void) { }
static inline void init_iommu_pm_ops(void) {}
#endif /* CONFIG_PM */

/*
Expand Down

0 comments on commit 99592ba

Please sign in to comment.