Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: driver core: documentation: make it clear that sysfs is optional driver core: sysdev: do not send KOBJ_ADD uevent if kobject_init_and_add fails Dynamic debug: fix typo: -/-> driver core: firmware_class:fix memory leak of page pointers array sysfs: fix hardlink count on device_move
This commit is contained in:
Коммит
ccf5675a82
|
@ -23,7 +23,8 @@ interface.
|
||||||
Using sysfs
|
Using sysfs
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
|
||||||
sysfs is always compiled in. You can access it by doing:
|
sysfs is always compiled in if CONFIG_SYSFS is defined. You can access
|
||||||
|
it by doing:
|
||||||
|
|
||||||
mount -t sysfs sysfs /sys
|
mount -t sysfs sysfs /sys
|
||||||
|
|
||||||
|
|
|
@ -180,7 +180,6 @@ static ssize_t firmware_loading_store(struct device *dev,
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
/* Pages will be freed by vfree() */
|
/* Pages will be freed by vfree() */
|
||||||
fw_priv->pages = NULL;
|
|
||||||
fw_priv->page_array_size = 0;
|
fw_priv->page_array_size = 0;
|
||||||
fw_priv->nr_pages = 0;
|
fw_priv->nr_pages = 0;
|
||||||
complete(&fw_priv->completion);
|
complete(&fw_priv->completion);
|
||||||
|
|
|
@ -275,9 +275,9 @@ int sysdev_register(struct sys_device *sysdev)
|
||||||
drv->add(sysdev);
|
drv->add(sysdev);
|
||||||
}
|
}
|
||||||
mutex_unlock(&sysdev_drivers_lock);
|
mutex_unlock(&sysdev_drivers_lock);
|
||||||
|
kobject_uevent(&sysdev->kobj, KOBJ_ADD);
|
||||||
}
|
}
|
||||||
|
|
||||||
kobject_uevent(&sysdev->kobj, KOBJ_ADD);
|
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -939,8 +939,10 @@ again:
|
||||||
/* Remove from old parent's list and insert into new parent's list. */
|
/* Remove from old parent's list and insert into new parent's list. */
|
||||||
sysfs_unlink_sibling(sd);
|
sysfs_unlink_sibling(sd);
|
||||||
sysfs_get(new_parent_sd);
|
sysfs_get(new_parent_sd);
|
||||||
|
drop_nlink(old_parent->d_inode);
|
||||||
sysfs_put(sd->s_parent);
|
sysfs_put(sd->s_parent);
|
||||||
sd->s_parent = new_parent_sd;
|
sd->s_parent = new_parent_sd;
|
||||||
|
inc_nlink(new_parent->d_inode);
|
||||||
sysfs_link_sibling(sd);
|
sysfs_link_sibling(sd);
|
||||||
|
|
||||||
out_unlock:
|
out_unlock:
|
||||||
|
|
|
@ -164,7 +164,7 @@ static void ddebug_change(const struct ddebug_query *query,
|
||||||
|
|
||||||
if (!newflags)
|
if (!newflags)
|
||||||
dt->num_enabled--;
|
dt->num_enabled--;
|
||||||
else if (!dp-flags)
|
else if (!dp->flags)
|
||||||
dt->num_enabled++;
|
dt->num_enabled++;
|
||||||
dp->flags = newflags;
|
dp->flags = newflags;
|
||||||
if (newflags) {
|
if (newflags) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче