parent
0ba9ecbebb
commit
efdd665289
|
@ -213,7 +213,6 @@ static int demo_setup_cdev(struct demo_dev *devp, int index)
|
|||
|
||||
cdev_init(&devp->cdev, &demo_fops);
|
||||
devp->cdev.owner = THIS_MODULE;
|
||||
devp->cdev.ops = &demo_fops;
|
||||
err = cdev_add(&devp->cdev, devno, 1);
|
||||
if(err)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue