]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtc: sirfsoc: Make sysrtc_regmap_config static
authorYueHaibing <yuehaibing@huawei.com>
Wed, 10 Apr 2019 13:43:36 +0000 (21:43 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 11 Apr 2019 21:18:27 +0000 (23:18 +0200)
Fix sparse warning:

drivers/rtc/rtc-sirfsoc.c:282:28: warning:
 symbol 'sysrtc_regmap_config' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-sirfsoc.c

index 2a9e151cae992ae321b9ec384386fd9ff8b58ace..9ba28d1ebd87a8f2003dfc2ae71ae752eaa16401 100644 (file)
@@ -279,7 +279,7 @@ static const struct of_device_id sirfsoc_rtc_of_match[] = {
        {},
 };
 
-const struct regmap_config sysrtc_regmap_config = {
+static const struct regmap_config sysrtc_regmap_config = {
        .reg_bits = 32,
        .val_bits = 32,
        .fast_io = true,