Implemented the following:
1.Register the driver by using the new mechanism, allocate the memory , initialise and add the cdev to device table.
head 1.2;
access;
symbols;
locks
root:1.2; strict;
comment @ * @;
1.2
date 2014.01.06.11.00.57; author root; state Exp;
branches;
next 1.1;
1.1
date 2014.01.06.10.57.33; author root; state Exp;
branches;
next ;
desc
@this is source code for register device by the new mechnism and allocate the the memory by using kmalloc and add cdev to the device table.
@
1.2
log
@removed the errors.
@
2.After registration, allocation, and adding the cdev to device table, delete the cdev form device table, deallocate the memory and unregister the driver.
head 1.2;
access;
symbols;
locks
root:1.2; strict;
comment @ * @;
1.2
date 2014.01.06.11.03.44; author root; state Exp;
branches;
next 1.1;
1.1
date 2014.01.06.10.58.52; author root; state Exp;
branches;
next ;
desc
@this is souce code for cleanup function in which unregister the driver by new mechnism and deallocate the mem.& cdev remove it in cleanup function.
@
1.2
log
@removed the errors.
@