diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2019-01-16 06:01:21 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-01-22 19:53:19 +0300 |
commit | f724c6bee162be3a9cd3b9168414ca106e0cdfe2 (patch) | |
tree | 9b3ae0ef067fbf9e2d860d12d17b7eca3849ad72 /drivers/rtc/rtc-sd3078.c | |
parent | c8c97a4fb52c526be7a78c4c1e61a95cf1c915cc (diff) | |
download | linux-f724c6bee162be3a9cd3b9168414ca106e0cdfe2.tar.xz |
rtc: sd3078: make symbol 'sd3078_driver' static
Fixes the following sparse warning:
drivers/rtc/rtc-sd3078.c:218:19: warning:
symbol 'sd3078_driver' was not declared. Should it be static?
Fixes: 1d67a232105b ("rtc: sd3078: new driver.")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-sd3078.c')
-rw-r--r-- | drivers/rtc/rtc-sd3078.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-sd3078.c b/drivers/rtc/rtc-sd3078.c index a70d7311d039..704844f32b45 100644 --- a/drivers/rtc/rtc-sd3078.c +++ b/drivers/rtc/rtc-sd3078.c @@ -215,7 +215,7 @@ static const struct of_device_id rtc_dt_match[] = { }; MODULE_DEVICE_TABLE(of, rtc_dt_match); -struct i2c_driver sd3078_driver = { +static struct i2c_driver sd3078_driver = { .driver = { .name = "sd3078", .owner = THIS_MODULE, |