lkml.org 
[lkml]   [2003]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectdvbdev fixes ( /dev/dvb/adapter0demux0 -> /dev/dvb/adapter0/demux0
I found a mistake in the dvbdev.c file when creating the dvb /devfs files, it created /dev/dvb/adapter0device0 instead of /dev/dvb/adapter0/device0. But here is a simple fix.

Monchi.
--- linux/drivers/media/dvb/dvb-core/dvbdev.c2 2003-05-05 01:53:07.000000000 +0200
+++ linux/drivers/media/dvb/dvb-core/dvbdev.c 2003-05-07 10:14:30.000000000 +0200
@@ -219,7 +219,7 @@

list_add_tail (&dvbdev->list_head, &adap->device_list);

- sprintf(name, "dvb/adapter%d%s%d", adap->num, dnames[type], id);
+ sprintf(name, "dvb/adapter%d/%s%d", adap->num, dnames[type], id);
devfs_register(NULL, name, 0, DVB_MAJOR, nums2minor(adap->num, type, id),
S_IFCHR | S_IRUSR | S_IWUSR, dvbdev->fops, dvbdev);

@@ -234,7 +234,7 @@
void dvb_unregister_device(struct dvb_device *dvbdev)
{
if (dvbdev) {
- devfs_remove("dvb/adapter%d%s%d", dvbdev->adapter->num,
+ devfs_remove("dvb/adapter%d/%s%d", dvbdev->adapter->num,
dnames[dvbdev->type], dvbdev->id);
list_del(&dvbdev->list_head);
kfree(dvbdev);
\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.031 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site