Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65739
b: refs/heads/master
c: 5f55338
h: refs/heads/master
i:
  65737: 64ab52b
  65735: edf8060
v: v3
  • Loading branch information
Kay Sievers authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent c9f396d commit 6ad0f23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: acb09af4e333dc92cdd32ae75ee7e5f3d7aaf60b
refs/heads/master: 5f553388b06532b495681f5d6c8e8fbff64ea86a
13 changes: 6 additions & 7 deletions trunk/drivers/media/dvb/dvb-core/dvbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev,
{
struct dvb_device *dvbdev;
struct file_operations *dvbdevfops;
struct class_device *clsdev;
struct device *clsdev;
int id;

mutex_lock(&dvbdev_register_lock);
Expand Down Expand Up @@ -242,10 +242,9 @@ int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev,

mutex_unlock(&dvbdev_register_lock);

clsdev = class_device_create(dvb_class, NULL, MKDEV(DVB_MAJOR,
nums2minor(adap->num, type, id)),
adap->device, "dvb%d.%s%d", adap->num,
dnames[type], id);
clsdev = device_create(dvb_class, adap->device,
MKDEV(DVB_MAJOR, nums2minor(adap->num, type, id)),
"dvb%d.%s%d", adap->num, dnames[type], id);
if (IS_ERR(clsdev)) {
printk(KERN_ERR "%s: failed to create device dvb%d.%s%d (%ld)\n",
__FUNCTION__, adap->num, dnames[type], id, PTR_ERR(clsdev));
Expand All @@ -266,8 +265,8 @@ void dvb_unregister_device(struct dvb_device *dvbdev)
if (!dvbdev)
return;

class_device_destroy(dvb_class, MKDEV(DVB_MAJOR, nums2minor(dvbdev->adapter->num,
dvbdev->type, dvbdev->id)));
device_destroy(dvb_class, MKDEV(DVB_MAJOR, nums2minor(dvbdev->adapter->num,
dvbdev->type, dvbdev->id)));

list_del (&dvbdev->list_head);
kfree (dvbdev->fops);
Expand Down

0 comments on commit 6ad0f23

Please sign in to comment.