Messages in this thread Patch in this message | | | Date | Wed, 4 Feb 2015 02:53:53 +0800 | From | kbuild test robot <> | Subject | [PATCH hwmon] hwmon: tmp102_dev_pm_ops can be static |
| |
drivers/hwmon/tmp102.c:284:1: sparse: symbol 'tmp102_dev_pm_ops' was not declared. Should it be static?
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> --- tmp102.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c index 565df47..9da2735 100644 --- a/drivers/hwmon/tmp102.c +++ b/drivers/hwmon/tmp102.c @@ -281,7 +281,7 @@ static int tmp102_resume(struct device *dev) } #endif /* CONFIG_PM */ -SIMPLE_DEV_PM_OPS(tmp102_dev_pm_ops, tmp102_suspend, tmp102_resume); +static SIMPLE_DEV_PM_OPS(tmp102_dev_pm_ops, tmp102_suspend, tmp102_resume); static const struct i2c_device_id tmp102_id[] = { { "tmp102", 0 },
| |