On Mon, Dec 13, 2010 at 01:02:16AM +0800, tom.leiming@xxxxxxxxx wrote:
From: Ming Lei <tom.leiming@xxxxxxxxx> This patch introduces is_inventra_dma helper, so that we can remove dependency on CONFIG_USB_INVENTRA_DMA in source file of musb core driver in later patches. Signed-off-by: Ming Lei <tom.leiming@xxxxxxxxx> --- drivers/usb/musb/musb_dma.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/usb/musb/musb_dma.h b/drivers/usb/musb/musb_dma.h index 70a64a2..b4271b8 100644 --- a/drivers/usb/musb/musb_dma.h +++ b/drivers/usb/musb/musb_dma.h @@ -68,6 +68,12 @@ struct musb_hw_ep; #define is_dma_capable() (0) #endif +#ifdef CONFIG_USB_INVENTRA_DMA +#define is_inventra_dma() 1 +#else +#define is_inventra_dma() 0 +#endif
we actually want to get rid of that, all DMA-specific crap should move to dma layer, MUSB should not care about which DMA it's using. -- balbi -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html