aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/asm9260_wdt.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-08 05:59:34 -0500
committerWim Van Sebroeck <wim@iguana.be>2016-01-11 16:48:05 -0500
commitac36856fe4321454b6789c019c96c3ec854094ed (patch)
treeb8598e014620e579b949f38b312f50ac1d950f64 /drivers/watchdog/asm9260_wdt.c
parent0254e953537c92df3e7d0176f401a211e944fd61 (diff)
watchdog: asm9260: remove __init and __exit annotations
The probe and release functions in this driver are marked as __init and __exit, but this is wrong as indicated by this Kbuild error message: WARNING: vmlinux.o(.data+0x1d2308): Section mismatch in reference from the variable asm9260_wdt_driver to the function .init.text:asm9260_wdt_probe() This removes the annotations, to make the sysfs unbind attribute and deferred probing work. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: aae03dc98177 ("watchdog: add Alphascale asm9260-wdt driver") Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/asm9260_wdt.c')
-rw-r--r--drivers/watchdog/asm9260_wdt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/watchdog/asm9260_wdt.c b/drivers/watchdog/asm9260_wdt.c
index 1c22ff4c523a..c9686b2fdafd 100644
--- a/drivers/watchdog/asm9260_wdt.c
+++ b/drivers/watchdog/asm9260_wdt.c
@@ -198,7 +198,7 @@ static struct watchdog_ops asm9260_wdt_ops = {
198 .set_timeout = asm9260_wdt_settimeout, 198 .set_timeout = asm9260_wdt_settimeout,
199}; 199};
200 200
201static int __init asm9260_wdt_get_dt_clks(struct asm9260_wdt_priv *priv) 201static int asm9260_wdt_get_dt_clks(struct asm9260_wdt_priv *priv)
202{ 202{
203 int err; 203 int err;
204 unsigned long clk; 204 unsigned long clk;
@@ -250,7 +250,7 @@ static int __init asm9260_wdt_get_dt_clks(struct asm9260_wdt_priv *priv)
250 return 0; 250 return 0;
251} 251}
252 252
253static void __init asm9260_wdt_get_dt_mode(struct asm9260_wdt_priv *priv) 253static void asm9260_wdt_get_dt_mode(struct asm9260_wdt_priv *priv)
254{ 254{
255 const char *tmp; 255 const char *tmp;
256 int ret; 256 int ret;
@@ -274,7 +274,7 @@ static void __init asm9260_wdt_get_dt_mode(struct asm9260_wdt_priv *priv)
274 tmp); 274 tmp);
275} 275}
276 276
277static int __init asm9260_wdt_probe(struct platform_device *pdev) 277static int asm9260_wdt_probe(struct platform_device *pdev)
278{ 278{
279 struct asm9260_wdt_priv *priv; 279 struct asm9260_wdt_priv *priv;
280 struct watchdog_device *wdd; 280 struct watchdog_device *wdd;
@@ -364,7 +364,7 @@ static void asm9260_wdt_shutdown(struct platform_device *pdev)
364 asm9260_wdt_disable(&priv->wdd); 364 asm9260_wdt_disable(&priv->wdd);
365} 365}
366 366
367static int __exit asm9260_wdt_remove(struct platform_device *pdev) 367static int asm9260_wdt_remove(struct platform_device *pdev)
368{ 368{
369 struct asm9260_wdt_priv *priv = platform_get_drvdata(pdev); 369 struct asm9260_wdt_priv *priv = platform_get_drvdata(pdev);
370 370