]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
watchdog: jz4740: Fix modular build
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 11 Nov 2016 00:02:20 +0000 (16:02 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 16 Dec 2016 14:53:54 +0000 (06:53 -0800)
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>
drivers/watchdog/jz4740_wdt.c

index c8d51ddb26d5d26acb3c14251a60cdeb21b0be2c..20627f22baf6a7004f74218b13152933d902b03b 100644 (file)
@@ -148,7 +148,7 @@ static const struct of_device_id jz4740_wdt_of_matches[] = {
        { .compatible = "ingenic,jz4740-watchdog", },
        { /* sentinel */ }
 };
-MODULE_DEVICE_TABLE(of, jz4740_wdt_of_matches)
+MODULE_DEVICE_TABLE(of, jz4740_wdt_of_matches);
 #endif
 
 static int jz4740_wdt_probe(struct platform_device *pdev)