Commit 0897f173 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Wolfram Sang
Browse files

i2c: designware-pci: use __maybe_unused for PM functions



Use __maybe_unused for PM functions instead of ifdeffery.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent c3c9bab1
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -213,8 +213,7 @@ static struct dw_pci_controller dw_pci_controllers[] = {
	},
};

#ifdef CONFIG_PM
static int i2c_dw_pci_suspend(struct device *dev)
static int __maybe_unused i2c_dw_pci_suspend(struct device *dev)
{
	struct dw_i2c_dev *i_dev = dev_get_drvdata(dev);

@@ -224,7 +223,7 @@ static int i2c_dw_pci_suspend(struct device *dev)
	return 0;
}

static int i2c_dw_pci_resume(struct device *dev)
static int __maybe_unused i2c_dw_pci_resume(struct device *dev)
{
	struct dw_i2c_dev *i_dev = dev_get_drvdata(dev);
	int ret;
@@ -234,7 +233,6 @@ static int i2c_dw_pci_resume(struct device *dev)

	return ret;
}
#endif

static UNIVERSAL_DEV_PM_OPS(i2c_dw_pm_ops, i2c_dw_pci_suspend,
			    i2c_dw_pci_resume, NULL);