yŽ‹’®E˜^‰æzLinux‚ ..
[
2ch
|
¥Menu
]
¡ƒRƒsƒyƒ‚[ƒh
ƒXƒŒ‚ð’Êí•\ަ
ƒIƒvƒVƒ‡ƒ“ƒ‚[ƒh
‚±‚̽گÄÞ‚ÌURL
¡€–ÚƒeƒLƒXƒg
151:123@‘±‚«@ 09/02/15 23:30:15 +E9Pmviv #if 0 dev_conf->vdev[lp] = video_device_alloc(); memcpy(dev_conf->vdev[lp], &pt1_template, sizeof(pt1_template)); @@ -744,6 +749,7 @@ kfree(dev_conf->channel[lp]->buf); kfree(dev_conf->channel[lp]); } + device_destroy( pt1video_class, MKDEV(MAJOR(dev_conf->dev), (MINO R(dev_conf->dev) + lp)) ); } unregister_chrdev_region(dev_conf->dev, MAX_CHANNEL); writel(0xb0b0000, dev_conf->regs); @@ -785,12 +791,16 @@ static int __init pt1_pci_init(void) { + pt1video_class = class_create(THIS_MODULE, "pt1video"); + if (IS_ERR(pt1video_class)) + return PTR_ERR(pt1video_class); return pci_register_driver(&pt1_driver); } static void __exit pt1_pci_cleanup(void) { + class_destroy( pt1video_class ); pci_unregister_driver (&pt1_driver); }
ŽŸƒy[ƒW
ÅVƒŒƒX•\ަ
ƒXƒŒƒbƒh‚ÌŒŸõ
—ÞŽ—ƒXƒŒˆê——
˜b‘è‚̃jƒ…[ƒX
‚¨‚Ü‚©‚¹ƒŠƒXƒg
¥ƒIƒvƒVƒ‡ƒ“‚ð•\ަ
ƒŒƒXƒWƒƒƒ“ƒv
mixiƒ`ƒFƒbƒNI
Twitter‚É“Še
ƒIƒvƒVƒ‡ƒ“
‚µ‚¨‚è‚ð‹²‚Þ
ƒXƒŒƒbƒh‚É‘ž
ƒXƒŒƒbƒh‚̈ꗗ
‰É‚‚Ԃµ2ch
5300“ú‘O‚ÉXV/208 KB
’S“–:undef