Re: [PATCH] i2c-designware: define i2c_dw_pci_runtime_idle only with runtime pm

2013-09-27 Thread Mika Westerberg
On Fri, Sep 27, 2013 at 04:43:13AM +0200, Wolfram Sang wrote: > On Fri, Sep 27, 2013 at 12:24:03AM +0200, Vincent Stehlé wrote: > > Make sure i2c_dw_pci_runtime_idle() is defined only when actually used, when > > CONFIG_PM_RUNTIME is defined. > > > > This fixes the following compilation warning: >

Re: [PATCH] i2c-designware: define i2c_dw_pci_runtime_idle only with runtime pm

2013-09-26 Thread Wolfram Sang
On Fri, Sep 27, 2013 at 12:24:03AM +0200, Vincent Stehlé wrote: > Make sure i2c_dw_pci_runtime_idle() is defined only when actually used, when > CONFIG_PM_RUNTIME is defined. > > This fixes the following compilation warning: > > drivers/i2c/busses/i2c-designware-pcidrv.c:188:12: warning: > ‘i2c

[PATCH] i2c-designware: define i2c_dw_pci_runtime_idle only with runtime pm

2013-09-26 Thread Vincent Stehlé
Make sure i2c_dw_pci_runtime_idle() is defined only when actually used, when CONFIG_PM_RUNTIME is defined. This fixes the following compilation warning: drivers/i2c/busses/i2c-designware-pcidrv.c:188:12: warning: ‘i2c_dw_pci_runtime_idle’ defined but not used [-Wunused-function] Signed-off-by: