mtd: physmap_of_gemini: remove defined but not used symbol 'syscon_match'
authorJason Yan <yanaijie@huawei.com>
Fri, 3 Apr 2020 08:15:44 +0000 (16:15 +0800)
committerRichard Weinberger <richard@nod.at>
Fri, 5 Jun 2020 08:15:44 +0000 (10:15 +0200)
It's not used by anyone now, remove it. Fix the following gcc warning:

drivers/mtd/maps/physmap-gemini.c:49:34: warning: â€˜syscon_match’ defined
but not used [-Wunused-const-variable=]
 static const struct of_device_id syscon_match[] = {
                                  ^~~~~~~~~~~~

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/maps/physmap-gemini.c

index a289c8b5cabf8e57a81f23d3efe6085bc6c904eb..d4a46e159d38f674bb30b3ffba78fe3941e6afe7 100644 (file)
 
 #define FLASH_PARALLEL_HIGH_PIN_CNT    (1 << 20)       /* else low pin cnt */
 
-static const struct of_device_id syscon_match[] = {
-       { .compatible = "cortina,gemini-syscon" },
-       { },
-};
-
 struct gemini_flash {
        struct device *dev;
        struct pinctrl *p;