Skip to content

Commit

Permalink
uml: fix compile error from net_device_ops conversion
Browse files Browse the repository at this point in the history
Fix the following compile error:

arch/um/drivers/net_kern.c: In function 'uml_inetaddr_event':
arch/um/drivers/net_kern.c:760: error: 'struct net_device' has no member named 'open'

This was introduced by commit 8bb95b3, "uml: convert network device
to netdevice ops".

Signed-off-by: Miklos Szeredi <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Jeff Dike <[email protected]>
Reviewed-by: WANG Cong <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Miklos Szeredi authored and torvalds committed Apr 3, 2009
1 parent 83f9ef4 commit ebe28bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/drivers/net_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ static int uml_inetaddr_event(struct notifier_block *this, unsigned long event,
void (*proc)(unsigned char *, unsigned char *, void *);
unsigned char addr_buf[4], netmask_buf[4];

if (dev->open != uml_net_open)
if (dev->netdev_ops->ndo_open != uml_net_open)
return NOTIFY_DONE;

lp = netdev_priv(dev);
Expand Down

0 comments on commit ebe28bb

Please sign in to comment.