removed define warnings from chardev_driver.c