[ARM] 4823/1: AT91 section fix
authorDavid Brownell <david-b@pacbell.net>
Wed, 6 Feb 2008 21:03:42 +0000 (22:03 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 9 Feb 2008 22:43:15 +0000 (22:43 +0000)
Fix section warning:

 WARNING: arch/arm/mach-at91/built-in.o(.text+0xd74): Section mismatch in reference
        from the function init_programmable_clock()
        to the function .init.text:at91_css_to_clk()
 The function  init_programmable_clock() references
 the function __init at91_css_to_clk().
 This is often because init_programmable_clock lacks a __init
 annotation or the annotation of at91_css_to_clk is wrong.

In this case the only calls to and from init_programmable_clock()
are from code marked as "__init", so this fix is trivially correct.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Uwe Kleine-Knig <Uwe.Kleine-Koenig@digi.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-at91/clock.c

index ec76eeaafd4566aece7f89c5057adf7bc4b76c8a..de6424e9ac0231f0123b50470d18984dd4d58888 100644 (file)
@@ -343,7 +343,7 @@ int clk_set_parent(struct clk *clk, struct clk *parent)
 EXPORT_SYMBOL(clk_set_parent);
 
 /* establish PCK0..PCK3 parentage and rate */
-static void init_programmable_clock(struct clk *clk)
+static void __init init_programmable_clock(struct clk *clk)
 {
        struct clk      *parent;
        u32             pckr;