[PATCH 1/3] USB: host: ehci_atmel: Move global variables to private struct

Sylvain Rochet sylvain.rochet at finsecur.com
Sat Jan 17 13:27:48 PST 2015


Hello Alan,

On Sat, Jan 17, 2015 at 03:30:45PM -0500, Alan Stern wrote:
> 
> This is not the right way to do it.  For an example of the right way, 
> see the ehci-platform.c file.  Your private structure is stored in 
> ehci->priv, and its size is specified by the .extra_priv_size member of 
> an ehci_driver_overrides structure passed to ehci_init_driver().

Dammit… reworked this way, thanks for the heads-up !

Sylvain



More information about the linux-arm-kernel mailing list