Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

watchdog: jz4740: Fix modular build

Compiling this driver as a module causes a build error because a
semicolon is missing after MODULE_DEVICE_TABLE. Add it.

CC [M] drivers/watchdog/jz4740_wdt.o
drivers/watchdog/jz4740_wdt.c:154:1: error: expected ‘,’ or ‘;’ before ‘static’
drivers/watchdog/jz4740_wdt.c:218:11: error: ‘jz4740_wdt_probe’ undeclared here (not in a function)

Cc: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Stephen Boyd and committed by
Guenter Roeck
35ffa961 f06f35c6

+1 -1
+1 -1
drivers/watchdog/jz4740_wdt.c
··· 148 148 { .compatible = "ingenic,jz4740-watchdog", }, 149 149 { /* sentinel */ } 150 150 }; 151 - MODULE_DEVICE_TABLE(of, jz4740_wdt_of_matches) 151 + MODULE_DEVICE_TABLE(of, jz4740_wdt_of_matches); 152 152 #endif 153 153 154 154 static int jz4740_wdt_probe(struct platform_device *pdev)