Subject: [PATCH 7/8] MXS: Enable USB on M28EVK

From: [email-masked] (Sergei Shtylyov)
Date: Tue, 17 Apr 2012 21:40:55 +0400

Hello.

On 04/17/2012 02:15 PM, Marek Vasut wrote:

> Enable the second USB port on M28EVK board.

> Signed-off-by: Marek Vasut<[email-masked]>
> Cc: Chen Peter-B29397<[email-masked]>
> Cc: Detlev Zundel<[email-masked]>
> Cc: Fabio Estevam<[email-masked]>
> Cc: Li Frank-B20596<[email-masked]>
> Cc: Lin Tony-B19295<[email-masked]>
> Cc: Linux USB<[email-masked]>
> Cc: Sascha Hauer<[email-masked]>
> Cc: Shawn Guo<[email-masked]>
> Cc: Shawn Guo<[email-masked]>
> Cc: Stefano Babic<[email-masked]>
> Cc: Subodh Nijsure<[email-masked]>
> Cc: Tony Lin<[email-masked]>
> Cc: Wolfgang Denk<[email-masked]>
[...]

> @@ -377,6 +382,11 @@ static void __init m28evk_init(void)
>   	mx28_add_ts(&touch_pdata);
>
>   	mx28_add_gpmi_nand(&m28evk_gpmi_nand_data);
> +
> +	gpio_request(MXS_GPIO_NR(3, 13), "USB");

    gpio_request() can fail and you don't handle it.

> +	gpio_direction_output(MXS_GPIO_NR(3, 13), 0);

    You can use gpio_request_one() instead of the above 2 calls.

WBR, Sergei