msm: kgsl: Allow device attributes to be re-created
Leave the attributes initialized so that removing and restoring policies doesn't result in a kernel panic. Change-Id: I9724ebf94e3845b6cbaea18abf49d1813043eb52 Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
This commit is contained in:
@@ -267,7 +267,6 @@ void kgsl_pwrscale_policy_remove_files(struct kgsl_device *device,
|
||||
sysfs_remove_group(&pwrscale->kobj, attr_group);
|
||||
kobject_del(&pwrscale->kobj);
|
||||
kobject_put(&pwrscale->kobj);
|
||||
pwrscale->kobj.state_initialized = 0;
|
||||
}
|
||||
|
||||
static void _kgsl_pwrscale_detach_policy(struct kgsl_device *device)
|
||||
|
||||
Reference in New Issue
Block a user