mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
Merge "drivers: soc: qcom: avoid double initialization of kobj"
This commit is contained in:
commit
6ce647ffc5
1 changed files with 5 additions and 2 deletions
|
|
@ -1263,10 +1263,13 @@ static int memlat_cpu_grp_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
if (!rimps_kobj) {
|
||||
rimps_kobj = kobject_create();
|
||||
if (!rimps_kobj)
|
||||
rimps_kobj = kzalloc(sizeof(*rimps_kobj), GFP_KERNEL);
|
||||
|
||||
if (!rimps_kobj) {
|
||||
dev_err(dev, "%s: failed to create rimps_kobj\n",
|
||||
__func__);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
ret = kobject_init_and_add(rimps_kobj, &ktype_log_level,
|
||||
&cpu_subsys.dev_root->kobj, "memlat");
|
||||
|
|
|
|||
Loading…
Reference in a new issue