projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: pass info struct via netdevice notifier
[deliverable/linux.git]
/
arch
/
mips
/
txx9
/
generic
/
setup_tx4939.c
diff --git
a/arch/mips/txx9/generic/setup_tx4939.c
b/arch/mips/txx9/generic/setup_tx4939.c
index 729a50991780f7e6aceb022012e4278993c5a6a7..b7eccbd17bf7e72d3ec78250ecc0bc80f606b504 100644
(file)
--- a/
arch/mips/txx9/generic/setup_tx4939.c
+++ b/
arch/mips/txx9/generic/setup_tx4939.c
@@
-331,7
+331,8
@@
static int tx4939_netdev_event(struct notifier_block *this,
unsigned long event,
void *ptr)
{
- struct net_device *dev = ptr;
+ struct net_device *dev = netdev_notifier_info_to_dev(ptr);
+
if (event == NETDEV_CHANGE && netif_carrier_ok(dev)) {
__u64 bit = 0;
if (dev->irq == TXX9_IRQ_BASE + TX4939_IR_ETH(0))
This page took
0.045074 seconds
and
5
git commands to generate.