follow these simple steps to initialize your character driver….
1. use module __init(initialization_function_name)
this is a micro which takes function name as argument.
2. static int initialization_function_name(void)
this is the defination of micro…
in this defination follow following steps..
a. register your char device using register_chardev_region().
b. allocate memory for the sculldev.
c. initialize your device using cdev_init() and add your device using cdev_add() functions.