projects
/
madwifi
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use netdev_notifier_info_to_dev(), needed for Linux 3.11+
[madwifi/.git]
/
ath
/
if_ath.c
diff --git
a/ath/if_ath.c
b/ath/if_ath.c
index a0d7eb8a5a37cb877f3251af36eb8d6fe0c93a0f..1c87bba45bf881d69269ba37beee4b2bc1a85e84 100644
(file)
--- a/
ath/if_ath.c
+++ b/
ath/if_ath.c
@@
-12359,7
+12359,7
@@
static int
ath_rcv_dev_event(struct notifier_block *this, unsigned long event,
void *ptr)
{
ath_rcv_dev_event(struct notifier_block *this, unsigned long event,
void *ptr)
{
- struct net_device *dev =
(struct net_device *)ptr
;
+ struct net_device *dev =
netdev_notifier_info_to_dev(ptr)
;
struct ath_softc *sc = (struct ath_softc *)netdev_priv(dev);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
struct ath_softc *sc = (struct ath_softc *)netdev_priv(dev);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)