# HG changeset patch # User Yoshiki Yazawa # Date 1235917958 -32400 # Node ID eb694d8e4c7ec44b51304cc5701f06d9a54e6dc8 # Parent 827394196b3f65af1bd5cb31b5cadb634f21eb78 setup owner in initialization diff -r 827394196b3f -r eb694d8e4c7e driver/pt1_pci.c --- a/driver/pt1_pci.c Sun Mar 01 22:44:40 2009 +0900 +++ b/driver/pt1_pci.c Sun Mar 01 23:32:38 2009 +0900 @@ -660,6 +660,7 @@ } for(lp = 0 ; lp < MAX_CHANNEL ; lp++){ cdev_init(&dev_conf->cdev[lp], &pt1_fops); + dev_conf->cdev[lp].owner = THIS_MODULE; cdev_add(&dev_conf->cdev[lp], MKDEV(MAJOR(dev_conf->dev), (MINOR(dev_conf->dev) + lp)), 1); channel = kzalloc(sizeof(PT1_CHANNEL), GFP_KERNEL); if(!channel){