summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/sama5/sam_ohci.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-09-07 11:43:06 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-09-07 11:43:06 -0600
commit56ecc7ff06b521dbda03a4c7b6274459a5709ab2 (patch)
tree079f123c9da25dd6f2a98518daa1db63cbd36d1f /nuttx/arch/arm/src/sama5/sam_ohci.c
parent41f052cc7b494d198e5bcb662790c1c1102c5dfb (diff)
downloadpx4-nuttx-56ecc7ff06b521dbda03a4c7b6274459a5709ab2.tar.gz
px4-nuttx-56ecc7ff06b521dbda03a4c7b6274459a5709ab2.tar.bz2
px4-nuttx-56ecc7ff06b521dbda03a4c7b6274459a5709ab2.zip
SAMA5: Add support EHCI/OHCI to sama5d3x-ek/demo (does not work yet); Fix some EHCI/OHCI compilation issues when DEBUG is disabled
Diffstat (limited to 'nuttx/arch/arm/src/sama5/sam_ohci.c')
-rw-r--r--nuttx/arch/arm/src/sama5/sam_ohci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/sama5/sam_ohci.c b/nuttx/arch/arm/src/sama5/sam_ohci.c
index 526859537..d943d01d9 100644
--- a/nuttx/arch/arm/src/sama5/sam_ohci.c
+++ b/nuttx/arch/arm/src/sama5/sam_ohci.c
@@ -2504,7 +2504,9 @@ errout:
static int sam_epfree(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep)
{
+#ifdef CONFIG_DEBUG
struct sam_rhport_s *rhport = (struct sam_rhport_s *)drvr;
+#endif
struct sam_eplist_s *eplist = (struct sam_eplist_s *)ep;
struct sam_ed_s *ed;
int ret;