]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mailbox: pcc: make pcc_mbox_driver static
authorJason Yan <yanaijie@huawei.com>
Fri, 3 Apr 2020 03:52:08 +0000 (11:52 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 30 May 2020 21:06:22 +0000 (16:06 -0500)
Fix the following sparse warning:

drivers/mailbox/pcc.c:571:24: warning: symbol 'pcc_mbox_driver' was not
declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/pcc.c

index 34844b7a367524eb13a27f5331a3c99b14ef1876..8c7fac38bb1cb49a50e96e2d499fa07e9806077e 100644 (file)
@@ -568,7 +568,7 @@ static int pcc_mbox_probe(struct platform_device *pdev)
        return ret;
 }
 
-struct platform_driver pcc_mbox_driver = {
+static struct platform_driver pcc_mbox_driver = {
        .probe = pcc_mbox_probe,
        .driver = {
                .name = "PCCT",