Merge "qcedev : Solve compilation issues"

This commit is contained in:
qctecmdr 2020-12-18 18:04:13 -08:00 • committed by Gerrit - the friendly Code Review server
commit 35ebde122b

View file

@ -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;