Skip to content

Commit 1d5898b

Browse files
mripardWim Van Sebroeck
authored andcommitted
watchdog: sunxi: Fix section mismatch
This driver has a section mismatch, for probe and remove functions, leading to the following warning during the compilation. WARNING: drivers/watchdog/built-in.o(.data+0x24): Section mismatch in reference from the variable sunxi_wdt_driver to the function .init.text:sunxi_wdt_probe() The variable sunxi_wdt_driver references the function __init sunxi_wdt_probe() Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
1 parent 4c4e456 commit 1d5898b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/watchdog/sunxi_wdt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static const struct watchdog_ops sunxi_wdt_ops = {
146146
.set_timeout = sunxi_wdt_set_timeout,
147147
};
148148

149-
static int __init sunxi_wdt_probe(struct platform_device *pdev)
149+
static int sunxi_wdt_probe(struct platform_device *pdev)
150150
{
151151
struct sunxi_wdt_dev *sunxi_wdt;
152152
struct resource *res;
@@ -187,7 +187,7 @@ static int __init sunxi_wdt_probe(struct platform_device *pdev)
187187
return 0;
188188
}
189189

190-
static int __exit sunxi_wdt_remove(struct platform_device *pdev)
190+
static int sunxi_wdt_remove(struct platform_device *pdev)
191191
{
192192
struct sunxi_wdt_dev *sunxi_wdt = platform_get_drvdata(pdev);
193193

0 commit comments

Comments
 (0)