diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-27 12:28:53 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-27 12:28:53 +0000 |
commit | 2f0f3490d33c9efd1eb39901e1c3414636eff323 (patch) | |
tree | 1683c804e9e977ea8e6e7e78c0065013e5b7e581 | |
parent | 435e08eae1502f520ce14b279cd2754093e195cb (diff) | |
download | rockbox-2f0f3490d33c9efd1eb39901e1c3414636eff323.tar.gz rockbox-2f0f3490d33c9efd1eb39901e1c3414636eff323.zip |
Clip*: give lcd_hw_init() INIT_ATTR attribute
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26329 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/as3525/sansa-clip/lcd-clip.h | 3 | ||||
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipplus/lcd-clip.h | 4 | ||||
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/sansa-clip/lcd-clip.h b/firmware/target/arm/as3525/sansa-clip/lcd-clip.h index 3dbb416076..7863b853d5 100644 --- a/firmware/target/arm/as3525/sansa-clip/lcd-clip.h +++ b/firmware/target/arm/as3525/sansa-clip/lcd-clip.h | |||
@@ -19,9 +19,10 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | #include "config.h" | ||
22 | #include "ascodec.h" | 23 | #include "ascodec.h" |
23 | 24 | ||
24 | void lcd_hw_init(void); | 25 | void lcd_hw_init(void) INIT_ATTR; |
25 | static inline void lcd_enable_power(bool onoff) | 26 | static inline void lcd_enable_power(bool onoff) |
26 | { | 27 | { |
27 | ascodec_write(AS3514_DCDC15, onoff ? 1 : 0); | 28 | ascodec_write(AS3514_DCDC15, onoff ? 1 : 0); |
diff --git a/firmware/target/arm/as3525/sansa-clipplus/lcd-clip.h b/firmware/target/arm/as3525/sansa-clipplus/lcd-clip.h index 753759638e..ae0309a949 100644 --- a/firmware/target/arm/as3525/sansa-clipplus/lcd-clip.h +++ b/firmware/target/arm/as3525/sansa-clipplus/lcd-clip.h | |||
@@ -19,7 +19,9 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | void lcd_hw_init(void); | 22 | #include "config.h" |
23 | |||
24 | void lcd_hw_init(void) INIT_ATTR; | ||
23 | static inline void lcd_enable_power(bool onoff) | 25 | static inline void lcd_enable_power(bool onoff) |
24 | { | 26 | { |
25 | (void) onoff; | 27 | (void) onoff; |
diff --git a/firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h b/firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h index 753759638e..ae0309a949 100644 --- a/firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h +++ b/firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h | |||
@@ -19,7 +19,9 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | void lcd_hw_init(void); | 22 | #include "config.h" |
23 | |||
24 | void lcd_hw_init(void) INIT_ATTR; | ||
23 | static inline void lcd_enable_power(bool onoff) | 25 | static inline void lcd_enable_power(bool onoff) |
24 | { | 26 | { |
25 | (void) onoff; | 27 | (void) onoff; |