Mercurial > pt1
changeset 30:eb694d8e4c7e
setup owner in initialization
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 01 Mar 2009 23:32:38 +0900 |
parents | 827394196b3f |
children | 289794dc265f |
files | driver/pt1_pci.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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){