diff options
author | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | 2014-07-04 18:58:03 +0200 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2014-07-07 14:42:52 +0200 |
commit | c05aba2bd5f9dd3f363611ff844513de1341ac60 (patch) | |
tree | 28775148c24996ac0069a17e852e507bc6a3fc44 /drivers/of/device.c | |
parent | of/platform: Fix of_platform_device_destroy iteration of devices (diff) | |
download | linux-c05aba2bd5f9dd3f363611ff844513de1341ac60.tar.xz linux-c05aba2bd5f9dd3f363611ff844513de1341ac60.zip |
of: rename of_aliases_mutex to just of_mutex
We're overloading usage of of_aliases_mutex for sysfs changes,
so rename to something that is more generic.
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of/device.c')
-rw-r--r-- | drivers/of/device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/device.c b/drivers/of/device.c index dafb9736ab9b..46d6c75c1404 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -160,7 +160,7 @@ void of_device_uevent(struct device *dev, struct kobj_uevent_env *env) add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); seen = 0; - mutex_lock(&of_aliases_mutex); + mutex_lock(&of_mutex); list_for_each_entry(app, &aliases_lookup, link) { if (dev->of_node == app->np) { add_uevent_var(env, "OF_ALIAS_%d=%s", seen, @@ -168,7 +168,7 @@ void of_device_uevent(struct device *dev, struct kobj_uevent_env *env) seen++; } } - mutex_unlock(&of_aliases_mutex); + mutex_unlock(&of_mutex); } int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env) |