Commit e9d25628 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Export new char dev functions

From: Jonathan Corbet <corbet@lwn.net>

Nobody told me that the failure to export these (like their block
counterparts) was anything but an oversight; modules will not be able to
use larger device numbers without them.  So...this patch exports the new
char device functions.
parent deb13f63
...@@ -445,3 +445,18 @@ void __init chrdev_init(void) ...@@ -445,3 +445,18 @@ void __init chrdev_init(void)
kset_register(&kset_dynamic); kset_register(&kset_dynamic);
cdev_map = kobj_map_init(base_probe, &cdev_subsys); cdev_map = kobj_map_init(base_probe, &cdev_subsys);
} }
/* Let modules do char dev stuff */
EXPORT_SYMBOL(register_chrdev_region);
EXPORT_SYMBOL(unregister_chrdev_region);
EXPORT_SYMBOL(alloc_chrdev_region);
EXPORT_SYMBOL(cdev_init);
EXPORT_SYMBOL(cdev_alloc);
EXPORT_SYMBOL(cdev_get);
EXPORT_SYMBOL(cdev_put);
EXPORT_SYMBOL(cdev_del);
EXPORT_SYMBOL(cdev_add);
EXPORT_SYMBOL(cdev_unmap);
EXPORT_SYMBOL(register_chrdev);
EXPORT_SYMBOL(unregister_chrdev);
...@@ -348,8 +348,6 @@ EXPORT_SYMBOL(lock_page); ...@@ -348,8 +348,6 @@ EXPORT_SYMBOL(lock_page);
EXPORT_SYMBOL(unlock_page); EXPORT_SYMBOL(unlock_page);
/* device registration */ /* device registration */
EXPORT_SYMBOL(register_chrdev);
EXPORT_SYMBOL(unregister_chrdev);
EXPORT_SYMBOL(register_blkdev); EXPORT_SYMBOL(register_blkdev);
EXPORT_SYMBOL(unregister_blkdev); EXPORT_SYMBOL(unregister_blkdev);
EXPORT_SYMBOL(tty_register_driver); EXPORT_SYMBOL(tty_register_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment