diff --git a/drivers/crypto/msm/qcedev.c b/drivers/crypto/msm/qcedev.c index f4d881be9abd..6221510f7997 100644 --- a/drivers/crypto/msm/qcedev.c +++ b/drivers/crypto/msm/qcedev.c @@ -187,16 +187,6 @@ static int qcedev_release(struct inode *inode, struct file *file); static int start_cipher_req(struct qcedev_control *podev); static int start_sha_req(struct qcedev_control *podev); -static const struct file_operations qcedev_fops = { - .owner = THIS_MODULE, - .unlocked_ioctl = qcedev_ioctl, -#ifdef CONFIG_COMPAT - .compat_ioctl = compat_qcedev_ioctl, -#endif - .open = qcedev_open, - .release = qcedev_release, -}; - static struct qcedev_control qce_dev[] = { { .magic = QCEDEV_MAGIC, @@ -1994,6 +1984,16 @@ exit_free_qcedev_areq: return err; } +static const struct file_operations qcedev_fops = { + .owner = THIS_MODULE, + .unlocked_ioctl = qcedev_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = compat_qcedev_ioctl, +#endif + .open = qcedev_open, + .release = qcedev_release, +}; + static int qcedev_probe_device(struct platform_device *pdev) { void *handle = NULL;