SAMA5: Add support EHCI/OHCI to sama5d3x-ek/demo (does not work yet); Fix some EHCI/OHCI compilation issues when DEBUG is disabled

This commit is contained in:
Gregory Nutt 2013-09-07 11:43:06 -06:00
parent 6e5df6259e
commit e5841a74a9
2 changed files with 3 additions and 1 deletions

View File

@ -690,7 +690,7 @@ static void sam_putreg(uint32_t regval, volatile uint32_t *regaddr)
#else
static inline void sam_putreg(uint32_t regval, volatile uint32_t *regaddr)
{
*regaval = regval;
*regaddr = regval;
}
#endif

View File

@ -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;