diff mbox series

i2c: nvidia-gpu: make pm_ops static

Message ID 20181109165726.13748-1-wsa@the-dreams.de
State Accepted
Headers show
Series i2c: nvidia-gpu: make pm_ops static | expand

Commit Message

Wolfram Sang Nov. 9, 2018, 4:57 p.m. UTC
sparse rightfully says:

warning: symbol 'gpu_i2c_driver_pm' was not declared. Should it be static?

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
---
 drivers/i2c/busses/i2c-nvidia-gpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Wolfram Sang Nov. 9, 2018, 5:24 p.m. UTC | #1
On Fri, Nov 09, 2018 at 05:57:26PM +0100, Wolfram Sang wrote:
> sparse rightfully says:
> 
> warning: symbol 'gpu_i2c_driver_pm' was not declared. Should it be static?
> 
> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

I need to fast-track this. Otherwise code checkers will complain when I
push the driver out. The other patches have more time for review. Sorry
for the hazzle.

Applied to for-current.
diff mbox series

Patch

diff --git a/drivers/i2c/busses/i2c-nvidia-gpu.c b/drivers/i2c/busses/i2c-nvidia-gpu.c
index 744f5e42636b..8822357bca0c 100644
--- a/drivers/i2c/busses/i2c-nvidia-gpu.c
+++ b/drivers/i2c/busses/i2c-nvidia-gpu.c
@@ -349,7 +349,7 @@  static int gpu_i2c_resume(struct device *dev)
 	return 0;
 }
 
-UNIVERSAL_DEV_PM_OPS(gpu_i2c_driver_pm, NULL, gpu_i2c_resume, NULL);
+static UNIVERSAL_DEV_PM_OPS(gpu_i2c_driver_pm, NULL, gpu_i2c_resume, NULL);
 
 static struct pci_driver gpu_i2c_driver = {
 	.name		= "nvidia-gpu",