/* Returns 1 if UDC should be enabled, 0 otherwise  */
static int should_enable_udc(struct pxa_udc *udc)
/* Returns 1 if UDC should be enabled, 0 otherwise  */
static int should_enable_udc(struct pxa_udc *udc)
{
	int put_on;
	put_on = ((udc->pullup_on) && (udc->driver));
	put_on &= ((udc->vbus_sensed) || (!udc->transceiver));
	return put_on;
}