mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
wakeup_stats: Don't export device info to sysfs
wakeup_source_device_create creates a symlink to the directory of the device associated with the wakelock. Not only is this unnecessary, this also results in selinux denials and the following errors in logcat if the directory isn't whitelisted in sepolicy: "Error opening kernel wakelock stats for: wakeup[n]: Permission denied" Stop creating the symlink to silence the errors as it's useless anyway. Signed-off-by: Kazuki Hashimoto <kaz205@tuta.io> Signed-off-by: K A R T H I K <karthik.lal558@gmail.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
415363aa10
commit
23ab36fd8a
@ -145,7 +145,6 @@ static struct device *wakeup_source_device_create(struct device *parent,
|
||||
device_initialize(dev);
|
||||
dev->devt = MKDEV(0, 0);
|
||||
dev->class = wakeup_class;
|
||||
dev->parent = parent;
|
||||
dev->groups = wakeup_source_groups;
|
||||
dev->release = device_create_release;
|
||||
dev_set_drvdata(dev, ws);
|
||||
|
Loading…
x
Reference in New Issue
Block a user