mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
i2c: nvidia-gpu: mark resume function as __maybe_unused
When CONFIG_PM is disabled, this is needed to avoid a harmless
unused-function warning:
drivers/i2c/busses/i2c-nvidia-gpu.c:345:12: error: 'gpu_i2c_resume' defined but not used [-Werror=unused-function]
Fixes: c71bcdcb42 ("i2c: add i2c bus driver for NVIDIA GPU")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
a4f98be7dc
commit
32774a8153
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ static void gpu_i2c_remove(struct pci_dev *pdev)
|
|||
pci_free_irq_vectors(pdev);
|
||||
}
|
||||
|
||||
static int gpu_i2c_resume(struct device *dev)
|
||||
static __maybe_unused int gpu_i2c_resume(struct device *dev)
|
||||
{
|
||||
struct gpu_i2c_dev *i2cd = dev_get_drvdata(dev);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue