OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c71bcdc
)
i2c: nvidia-gpu: make pm_ops static
author
Wolfram Sang
<wsa@the-dreams.de>
Fri, 9 Nov 2018 16:54:38 +0000
(17:54 +0100)
committer
Wolfram Sang
<wsa@the-dreams.de>
Fri, 9 Nov 2018 16:56:44 +0000
(17:56 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-nvidia-gpu.c
b/drivers/i2c/busses/i2c-nvidia-gpu.c
index
744f5e4
..
8822357
100644
(file)
--- 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",