summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-09-26 18:02:09 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-09-26 18:02:09 +0200
commit7a828ac5e2f07679816e8513f5c64d61fd21349e (patch)
tree1a249f0ced4475e168f12fe3ea8aa8c7e49f9156 /bootloader
parent6dcd465b1802ccfac39d1657febd0ce515d71460 (diff)
downloadrockbox-7a828ac5e2f07679816e8513f5c64d61fd21349e.tar.gz
rockbox-7a828ac5e2f07679816e8513f5c64d61fd21349e.tar.bz2
rockbox-7a828ac5e2f07679816e8513f5c64d61fd21349e.zip
imx233/bootloader: fix red
Change-Id: I209cdee6007d3b3c039f6b0b63a30fabc8aefb41
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/imx233.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootloader/imx233.c b/bootloader/imx233.c
index 8ac74f10bc..2238728817 100644
--- a/bootloader/imx233.c
+++ b/bootloader/imx233.c
@@ -157,7 +157,12 @@ void main(uint32_t arg, uint32_t addr)
button_init();
/* dummy read, might be necessary to init things */
+#ifdef HAVE_BUTTON_DATA
+ int data;
+ button_read_device(&data);
+#else
button_read_device();
+#endif
#ifdef HAS_BUTTON_HOLD
if(button_hold())