Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75801
b: refs/heads/master
c: 038c5b3
h: refs/heads/master
i:
  75799: b1cbcac
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent 80bac18 commit 6020fab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6d292c451e0ffe715fff36dc3a1129868258fa3
refs/heads/master: 038c5b3e412b0b751cb4b1507506bad3c7ffefae
8 changes: 3 additions & 5 deletions trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,11 +828,8 @@ static int cpufreq_add_dev (struct sys_device * sys_dev)
memcpy(&new_policy, policy, sizeof(struct cpufreq_policy));

/* prepare interface data */
policy->kobj.parent = &sys_dev->kobj;
policy->kobj.ktype = &ktype_cpufreq;
kobject_set_name(&policy->kobj, "cpufreq");

ret = kobject_register(&policy->kobj);
ret = kobject_init_and_add(&policy->kobj, &ktype_cpufreq, &sys_dev->kobj,
"cpufreq");
if (ret) {
unlock_policy_rwsem_write(cpu);
goto err_out_driver_exit;
Expand Down Expand Up @@ -902,6 +899,7 @@ static int cpufreq_add_dev (struct sys_device * sys_dev)
goto err_out_unregister;
}

kobject_uevent(&policy->kobj, KOBJ_ADD);
module_put(cpufreq_driver->owner);
dprintk("initialization complete\n");
cpufreq_debug_enable_ratelimit();
Expand Down

0 comments on commit 6020fab

Please sign in to comment.