mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
wil6210: send uevent when creating sysfs files
Send a KOBJ_CHANGE uevent when creating the wil6210 sysfs directory. This is mainly needed so selinux policy rules will be applied when the wil6210 module is dynamically loaded. Change-Id: I4220c551b8792d419db7a380b16f3c87204be22a Signed-off-by: Lior David <liord@codeaurora.org> Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
This commit is contained in:
parent
f0cfac4600
commit
cf3b97fa9b
1 changed files with 3 additions and 0 deletions
|
|
@ -276,6 +276,8 @@ int wil6210_sysfs_init(struct wil6210_priv *wil)
|
|||
return err;
|
||||
}
|
||||
|
||||
kobject_uevent(&dev->kobj, KOBJ_CHANGE);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -284,4 +286,5 @@ void wil6210_sysfs_remove(struct wil6210_priv *wil)
|
|||
struct device *dev = wil_to_dev(wil);
|
||||
|
||||
sysfs_remove_group(&dev->kobj, &wil6210_attribute_group);
|
||||
kobject_uevent(&dev->kobj, KOBJ_CHANGE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue