summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-27 12:00:18 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-27 12:00:18 +0000
commitb0146de64cdcd581f4d179262d2361622c8de096 (patch)
tree29f2f1c8afb8afc9e05a81c753979751c3775632 /firmware
parent9ecb4e938494b0593832791b5966595969082a59 (diff)
downloadrockbox-b0146de64cdcd581f4d179262d2361622c8de096.tar.gz
rockbox-b0146de64cdcd581f4d179262d2361622c8de096.tar.bz2
rockbox-b0146de64cdcd581f4d179262d2361622c8de096.zip
as3525: don't export empty usb_init_device(), declare it as empty inline
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26326 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/usb-as3525.c4
-rw-r--r--firmware/target/arm/as3525/usb-target.h3
2 files changed, 2 insertions, 5 deletions
diff --git a/firmware/target/arm/as3525/usb-as3525.c b/firmware/target/arm/as3525/usb-as3525.c
index be62752033..524d8d2c7d 100644
--- a/firmware/target/arm/as3525/usb-as3525.c
+++ b/firmware/target/arm/as3525/usb-as3525.c
@@ -43,10 +43,6 @@ void usb_enable(bool on)
#endif
}
-void usb_init_device(void)
-{
-}
-
void usb_insert_int(void)
{
usb_status = USB_INSERTED;
diff --git a/firmware/target/arm/as3525/usb-target.h b/firmware/target/arm/as3525/usb-target.h
index 6df6d7c1d5..3643cf84b6 100644
--- a/firmware/target/arm/as3525/usb-target.h
+++ b/firmware/target/arm/as3525/usb-target.h
@@ -21,7 +21,8 @@
#ifndef USB_TARGET_H
#define USB_TARGET_H
-void usb_init_device(void);
+static inline void usb_init_device(void) { }
+
int usb_detect(void);
void usb_insert_int(void);
void usb_remove_int(void);