]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/base/cpu.c
[PATCH] Driver core: link device and all class devices derived from it.
[linux-2.6-omap-h63xx.git] / drivers / base / cpu.c
index 0bf2dc11cdb8aa56c8728933ab61329120795280..b79badd0f1588dea649df9033652f0f5d2afbacf 100644 (file)
@@ -44,6 +44,8 @@ static ssize_t store_online(struct sys_device *dev, const char *buf,
                ret = smp_prepare_cpu(cpu->sysdev.id);
                if (!ret)
                        ret = cpu_up(cpu->sysdev.id);
+               if (!ret)
+                       kobject_hotplug(&dev->kobj, KOBJ_ONLINE);
                break;
        default:
                ret = -EINVAL;