csr |= (MUSB_TXCSR_DMAENAB |
MUSB_TXCSR_MODE);
/* against programming guide */
- }
- else
+ } else
csr |= (MUSB_TXCSR_AUTOSET
| MUSB_TXCSR_DMAENAB
| MUSB_TXCSR_DMAMODE
}
/* incomplete, and not short? wait for next IN packet */
- if ((request->actual < request->length)
+ if ((request->actual < request->length)
&& (musb_ep->dma->actual_len
== musb_ep->packet_sz))
goto done;
#if 0
static int musb_gadget_vbus_session(struct usb_gadget *gadget, int is_active)
{
- DBG(2, "<= %s =>\n", __FUNCTION__);
+ DBG(2, "<= %s =>\n", __func__);
/*
* FIXME iff driver's softconnect flag is set (as it is during probe,
static void musb_gadget_release(struct device *dev)
{
/* kref_put(WHAT) */
- dev_dbg(dev, "%s\n", __FUNCTION__);
+ dev_dbg(dev, "%s\n", __func__);
}
/* driver must be initialized to support peripheral mode */
if (!musb || !(musb->board_mode == MUSB_OTG
|| musb->board_mode != MUSB_OTG)) {
- DBG(1,"%s, no dev??\n", __FUNCTION__);
+ DBG(1, "%s, no dev??\n", __func__);
return -ENODEV;
}
}
spin_unlock(&musb->lock);
- driver->disconnect (&musb->g);
+ driver->disconnect(&musb->g);
spin_lock(&musb->lock);
}
}