Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 729697a1 authored by Tony Lindgren's avatar Tony Lindgren Committed by Felipe Balbi
Browse files

usb: musb: Get rid of the DMA ifdefs for musb_core.c



For musb_core.c we can now just drop the DMA related
ifdef and use the already existing runtime test for
!is_cppi_enabled(musb) instead.

Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 7f6283ed
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -1667,7 +1667,6 @@ void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit)
	/* called with controller lock already held */
	/* called with controller lock already held */


	if (!epnum) {
	if (!epnum) {
#ifndef CONFIG_USB_TUSB_OMAP_DMA
		if (!is_cppi_enabled(musb)) {
		if (!is_cppi_enabled(musb)) {
			/* endpoint 0 */
			/* endpoint 0 */
			if (is_host_active(musb))
			if (is_host_active(musb))
@@ -1675,7 +1674,6 @@ void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit)
			else
			else
				musb_g_ep0_irq(musb);
				musb_g_ep0_irq(musb);
		}
		}
#endif
	} else {
	} else {
		/* endpoints 1..15 */
		/* endpoints 1..15 */
		if (transmit) {
		if (transmit) {