projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: reclaim the 'user_property' partition on WHR-* boards
[openwrt.git]
/
target
/
linux
/
generic
/
files
/
drivers
/
net
/
phy
/
swconfig.c
diff --git
a/target/linux/generic/files/drivers/net/phy/swconfig.c
b/target/linux/generic/files/drivers/net/phy/swconfig.c
index
1baccb1
..
e772c94
100644
(file)
--- a/
target/linux/generic/files/drivers/net/phy/swconfig.c
+++ b/
target/linux/generic/files/drivers/net/phy/swconfig.c
@@
-353,7
+353,7
@@
swconfig_get_dev(struct genl_info *info)
break;
}
if (dev)
break;
}
if (dev)
-
spin_lock(&dev->lock
);
+
mutex_lock(&dev->sw_mutex
);
else
DPRINTF("device %d not found\n", id);
swconfig_unlock();
else
DPRINTF("device %d not found\n", id);
swconfig_unlock();
@@
-364,7
+364,7
@@
done:
static inline void
swconfig_put_dev(struct switch_dev *dev)
{
static inline void
swconfig_put_dev(struct switch_dev *dev)
{
-
spin_unlock(&dev->lock
);
+
mutex_unlock(&dev->sw_mutex
);
}
static int
}
static int
@@
-962,7
+962,7
@@
register_switch(struct switch_dev *dev, struct net_device *netdev)
return -ENOMEM;
}
swconfig_defaults_init(dev);
return -ENOMEM;
}
swconfig_defaults_init(dev);
-
spin_lock_init(&dev->lock
);
+
mutex_init(&dev->sw_mutex
);
swconfig_lock();
dev->id = ++swdev_id;
swconfig_lock();
dev->id = ++swdev_id;
@@
-1000,11
+1000,11
@@
unregister_switch(struct switch_dev *dev)
{
swconfig_destroy_led_trigger(dev);
kfree(dev->portbuf);
{
swconfig_destroy_led_trigger(dev);
kfree(dev->portbuf);
-
spin_lock(&dev->lock
);
+
mutex_lock(&dev->sw_mutex
);
swconfig_lock();
list_del(&dev->dev_list);
swconfig_unlock();
swconfig_lock();
list_del(&dev->dev_list);
swconfig_unlock();
-
spin_unlock(&dev->lock
);
+
mutex_unlock(&dev->sw_mutex
);
}
EXPORT_SYMBOL_GPL(unregister_switch);
}
EXPORT_SYMBOL_GPL(unregister_switch);
This page took
0.022447 seconds
and
4
git commands to generate.