linux device drivers : how can i unregister a character device ?
Hi all, i'm reading linux device drivers,
and i'm creating a scull-like driver.
I alloc a chrdev region
how can i deallocate it ? I tried with
unregister_chrdev_region but it does work only for
statically allocated devices.
i want to deallocate it so that only a single major number is assigned to my driver and
cat /dev/devices | grep $dev_name
returns no more than 1 line.