diff options
author | Allan, Bruce W <bruce.w.allan@intel.com> | 2015-03-31 12:30:24 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-01 10:22:45 -0400 |
commit | 754a90d3f38979677490994189bf371ec2dd118d (patch) | |
tree | 58bf6f168dcafa7d29b0a2084e2479b482d2741d /drivers/crypto | |
parent | 6d7e7e02a044025237b6f62a20521170b794537f (diff) |
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>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/qat/qat_common/adf_ctl_drv.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_ctl_drv.c b/drivers/crypto/qat/qat_common/adf_ctl_drv.c index 731538aada65..cb5f066e93a6 100644 --- a/drivers/crypto/qat/qat_common/adf_ctl_drv.c +++ b/drivers/crypto/qat/qat_common/adf_ctl_drv.c | |||
@@ -77,14 +77,14 @@ struct adf_ctl_drv_info { | |||
77 | struct class *drv_class; | 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 | static void adf_chr_drv_destroy(void) | 82 | static void adf_chr_drv_destroy(void) |
83 | { | 83 | { |
84 | device_destroy(adt_ctl_drv.drv_class, MKDEV(adt_ctl_drv.major, 0)); | 84 | device_destroy(adf_ctl_drv.drv_class, MKDEV(adf_ctl_drv.major, 0)); |
85 | cdev_del(&adt_ctl_drv.drv_cdev); | 85 | cdev_del(&adf_ctl_drv.drv_cdev); |
86 | class_destroy(adt_ctl_drv.drv_class); | 86 | class_destroy(adf_ctl_drv.drv_class); |
87 | unregister_chrdev_region(MKDEV(adt_ctl_drv.major, 0), 1); | 87 | unregister_chrdev_region(MKDEV(adf_ctl_drv.major, 0), 1); |
88 | } | 88 | } |
89 | 89 | ||
90 | static int adf_chr_drv_create(void) | 90 | static int adf_chr_drv_create(void) |
@@ -97,20 +97,20 @@ static int adf_chr_drv_create(void) | |||
97 | return -EFAULT; | 97 | return -EFAULT; |
98 | } | 98 | } |
99 | 99 | ||
100 | adt_ctl_drv.drv_class = class_create(THIS_MODULE, DEVICE_NAME); | 100 | adf_ctl_drv.drv_class = class_create(THIS_MODULE, DEVICE_NAME); |
101 | if (IS_ERR(adt_ctl_drv.drv_class)) { | 101 | if (IS_ERR(adf_ctl_drv.drv_class)) { |
102 | pr_err("QAT: class_create failed for adf_ctl\n"); | 102 | pr_err("QAT: class_create failed for adf_ctl\n"); |
103 | goto err_chrdev_unreg; | 103 | goto err_chrdev_unreg; |
104 | } | 104 | } |
105 | adt_ctl_drv.major = MAJOR(dev_id); | 105 | adf_ctl_drv.major = MAJOR(dev_id); |
106 | cdev_init(&adt_ctl_drv.drv_cdev, &adf_ctl_ops); | 106 | cdev_init(&adf_ctl_drv.drv_cdev, &adf_ctl_ops); |
107 | if (cdev_add(&adt_ctl_drv.drv_cdev, dev_id, 1)) { | 107 | if (cdev_add(&adf_ctl_drv.drv_cdev, dev_id, 1)) { |
108 | pr_err("QAT: cdev add failed\n"); | 108 | pr_err("QAT: cdev add failed\n"); |
109 | goto err_class_destr; | 109 | goto err_class_destr; |
110 | } | 110 | } |
111 | 111 | ||
112 | drv_device = device_create(adt_ctl_drv.drv_class, NULL, | 112 | drv_device = device_create(adf_ctl_drv.drv_class, NULL, |
113 | MKDEV(adt_ctl_drv.major, 0), | 113 | MKDEV(adf_ctl_drv.major, 0), |
114 | NULL, DEVICE_NAME); | 114 | NULL, DEVICE_NAME); |
115 | if (IS_ERR(drv_device)) { | 115 | if (IS_ERR(drv_device)) { |
116 | pr_err("QAT: failed to create device\n"); | 116 | pr_err("QAT: failed to create device\n"); |
@@ -118,9 +118,9 @@ static int adf_chr_drv_create(void) | |||
118 | } | 118 | } |
119 | return 0; | 119 | return 0; |
120 | err_cdev_del: | 120 | err_cdev_del: |
121 | cdev_del(&adt_ctl_drv.drv_cdev); | 121 | cdev_del(&adf_ctl_drv.drv_cdev); |
122 | err_class_destr: | 122 | err_class_destr: |
123 | class_destroy(adt_ctl_drv.drv_class); | 123 | class_destroy(adf_ctl_drv.drv_class); |
124 | err_chrdev_unreg: | 124 | err_chrdev_unreg: |
125 | unregister_chrdev_region(dev_id, 1); | 125 | unregister_chrdev_region(dev_id, 1); |
126 | return -EFAULT; | 126 | return -EFAULT; |