[PATCH 2/4] at91: add udc usb device controller support

Sascha Hauer s.hauer at pengutronix.de
Tue Dec 13 05:37:07 EST 2011


On Mon, Dec 12, 2011 at 03:46:55PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
>  arch/arm/mach-at91/include/mach/board.h |   10 +
>  drivers/usb/gadget/Kconfig              |    7 +
>  drivers/usb/gadget/Makefile             |    1 +
>  drivers/usb/gadget/at91_udc.c           | 1513 +++++++++++++++++++++++++++++++
>  drivers/usb/gadget/at91_udc.h           |  167 ++++
>  5 files changed, 1698 insertions(+), 0 deletions(-)
>  create mode 100644 drivers/usb/gadget/at91_udc.c
>  create mode 100644 drivers/usb/gadget/at91_udc.h
> 

[...]

> +
> +/*-------------------------------------------------------------------------*/
> +
> +#ifdef VERBOSE_DEBUG
> +#    define VDBG		DBG
> +#else
> +#    define VDBG(stuff...)	do{}while(0)
> +#endif
> +
> +#ifdef PACKET_TRACE
> +#    define PACKET		VDBG
> +#else
> +#    define PACKET(stuff...)	do{}while(0)
> +#endif
> +
> +#define ERR(stuff...)		pr_err("udc: " stuff)
> +#define WARNING(stuff...)	pr_warning("udc: " stuff)
> +#define INFO(stuff...)		pr_info("udc: " stuff)
> +#define DBG(stuff...)		pr_debug("udc: " stuff)

Please convert to dev_* functions.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list