usb: gadget: move the global the_dev variable to their users
the u_ether.c file has a global variable named the_dev which keeps a pointer to the network device after it has been created via gether_setup_name(). It is only used internally by u_ether. This patches moves the variable to its users and passes it via the port.ioport where it is saved later anyway. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
このコミットが含まれているのは:
@@ -528,7 +528,7 @@ error:
|
||||
* Caller must have called @gether_setup(). Caller is also responsible
|
||||
* for calling @gether_cleanup() before module unload.
|
||||
*/
|
||||
int __init eem_bind_config(struct usb_configuration *c)
|
||||
int __init eem_bind_config(struct usb_configuration *c, struct eth_dev *dev)
|
||||
{
|
||||
struct f_eem *eem;
|
||||
int status;
|
||||
@@ -549,6 +549,7 @@ int __init eem_bind_config(struct usb_configuration *c)
|
||||
if (!eem)
|
||||
return -ENOMEM;
|
||||
|
||||
eem->port.ioport = dev;
|
||||
eem->port.cdc_filter = DEFAULT_FILTER;
|
||||
|
||||
eem->port.func.name = "cdc_eem";
|
||||
|
新しいイシューから参照
ユーザーをブロックする