Re: [RESEND v2 10/11] usb:hsotg:samsung: Determine number of EPs from HW configuration register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, Mar 21, 2012 at 12:59:48PM +0100, Lukasz Majewski wrote:
> @@ -3438,14 +3437,40 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
>  
>  	s3c_hsotg_corereset(hsotg);
>  	s3c_hsotg_init(hsotg);
> +	s3c_hsotg_hw_cfg(hsotg);
> +
> +	/* hsotg->num_of_eps holds number of EPs other than ep0 */
> +
> +	eps = kzalloc(sizeof(struct s3c_hsotg_ep) * (hsotg->num_of_eps + 1),
> +		      GFP_KERNEL);

how about kcalloc() ??

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux