projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8c97a4
)
rtc: sd3078: make symbol 'sd3078_driver' static
author
Wei Yongjun
<weiyongjun1@huawei.com>
Wed, 16 Jan 2019 03:01:21 +0000
(
03:01
+0000)
committer
Alexandre Belloni
<alexandre.belloni@bootlin.com>
Tue, 22 Jan 2019 16:53:19 +0000
(17:53 +0100)
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>
drivers/rtc/rtc-sd3078.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-sd3078.c
b/drivers/rtc/rtc-sd3078.c
index a70d7311d039afdd2ad307bd4920befbd22f75de..704844f32b452dbe69adaf8a997027267c2c3a0b 100644
(file)
--- 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 = {
+st
atic st
ruct i2c_driver sd3078_driver = {
.driver = {
.name = "sd3078",
.owner = THIS_MODULE,