diff --git a/index.html b/index.html index 12db3ca..c4baf07 100644 --- a/index.html +++ b/index.html @@ -2793,7 +2793,7 @@ which we mentioned at 6.5 149 150static int ioctl_init(void) 151{ -152    dev_t dev = MKDEV(test_ioctl_major, 0); +152    dev_t dev; 153    int alloc_ret = 0; 154    int cdev_ret = 0; 155    alloc_ret = alloc_chrdev_region(&dev, 0, num_of_dev, DRIVER_NAME); diff --git a/lkmpg-for-ht.html b/lkmpg-for-ht.html index 12db3ca..c4baf07 100644 --- a/lkmpg-for-ht.html +++ b/lkmpg-for-ht.html @@ -2793,7 +2793,7 @@ which we mentioned at 6.5 149 150static int ioctl_init(void) 151{ -152    dev_t dev = MKDEV(test_ioctl_major, 0); +152    dev_t dev; 153    int alloc_ret = 0; 154    int cdev_ret = 0; 155    alloc_ret = alloc_chrdev_region(&dev, 0, num_of_dev, DRIVER_NAME);