Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: qat - fix typo

adt_ctl_drv should be adf_ctl_drv

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Allan, Bruce W and committed by
Herbert Xu
754a90d3 6d7e7e02

+14 -14
+14 -14
drivers/crypto/qat/qat_common/adf_ctl_drv.c
··· 77 77 struct class *drv_class; 78 78 }; 79 79 80 - static struct adf_ctl_drv_info adt_ctl_drv; 80 + static struct adf_ctl_drv_info adf_ctl_drv; 81 81 82 82 static void adf_chr_drv_destroy(void) 83 83 { 84 - device_destroy(adt_ctl_drv.drv_class, MKDEV(adt_ctl_drv.major, 0)); 85 - cdev_del(&adt_ctl_drv.drv_cdev); 86 - class_destroy(adt_ctl_drv.drv_class); 87 - unregister_chrdev_region(MKDEV(adt_ctl_drv.major, 0), 1); 84 + device_destroy(adf_ctl_drv.drv_class, MKDEV(adf_ctl_drv.major, 0)); 85 + cdev_del(&adf_ctl_drv.drv_cdev); 86 + class_destroy(adf_ctl_drv.drv_class); 87 + unregister_chrdev_region(MKDEV(adf_ctl_drv.major, 0), 1); 88 88 } 89 89 90 90 static int adf_chr_drv_create(void) ··· 97 97 return -EFAULT; 98 98 } 99 99 100 - adt_ctl_drv.drv_class = class_create(THIS_MODULE, DEVICE_NAME); 101 - if (IS_ERR(adt_ctl_drv.drv_class)) { 100 + adf_ctl_drv.drv_class = class_create(THIS_MODULE, DEVICE_NAME); 101 + if (IS_ERR(adf_ctl_drv.drv_class)) { 102 102 pr_err("QAT: class_create failed for adf_ctl\n"); 103 103 goto err_chrdev_unreg; 104 104 } 105 - adt_ctl_drv.major = MAJOR(dev_id); 106 - cdev_init(&adt_ctl_drv.drv_cdev, &adf_ctl_ops); 107 - if (cdev_add(&adt_ctl_drv.drv_cdev, dev_id, 1)) { 105 + adf_ctl_drv.major = MAJOR(dev_id); 106 + cdev_init(&adf_ctl_drv.drv_cdev, &adf_ctl_ops); 107 + if (cdev_add(&adf_ctl_drv.drv_cdev, dev_id, 1)) { 108 108 pr_err("QAT: cdev add failed\n"); 109 109 goto err_class_destr; 110 110 } 111 111 112 - drv_device = device_create(adt_ctl_drv.drv_class, NULL, 113 - MKDEV(adt_ctl_drv.major, 0), 112 + drv_device = device_create(adf_ctl_drv.drv_class, NULL, 113 + MKDEV(adf_ctl_drv.major, 0), 114 114 NULL, DEVICE_NAME); 115 115 if (IS_ERR(drv_device)) { 116 116 pr_err("QAT: failed to create device\n"); ··· 118 118 } 119 119 return 0; 120 120 err_cdev_del: 121 - cdev_del(&adt_ctl_drv.drv_cdev); 121 + cdev_del(&adf_ctl_drv.drv_cdev); 122 122 err_class_destr: 123 - class_destroy(adt_ctl_drv.drv_class); 123 + class_destroy(adf_ctl_drv.drv_class); 124 124 err_chrdev_unreg: 125 125 unregister_chrdev_region(dev_id, 1); 126 126 return -EFAULT;