From: Jason Yan Date: Fri, 3 Apr 2020 08:15:44 +0000 (+0800) Subject: mtd: physmap_of_gemini: remove defined but not used symbol 'syscon_match' X-Git-Tag: v5.8-rc1~68^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9029537c93b6f7347cf213d4e3b5c935a4d07ac8;p=thirdparty%2Fkernel%2Flinux.git mtd: physmap_of_gemini: remove defined but not used symbol 'syscon_match' 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 Signed-off-by: Jason Yan Reviewed-by: Linus Walleij Signed-off-by: Richard Weinberger --- diff --git a/drivers/mtd/maps/physmap-gemini.c b/drivers/mtd/maps/physmap-gemini.c index a289c8b5cabf8..d4a46e159d38f 100644 --- a/drivers/mtd/maps/physmap-gemini.c +++ b/drivers/mtd/maps/physmap-gemini.c @@ -46,11 +46,6 @@ #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;