* dvbdev fixes ( /dev/dvb/adapter0demux0 -> /dev/dvb/adapter0/demux0
@ 2003-05-07 9:22 Monchi Abbad
2003-05-07 9:37 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Monchi Abbad @ 2003-05-07 9:22 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 184 bytes --]
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.
[-- Attachment #2: patch-dvbdev.diff --]
[-- Type: text/plain, Size: 820 bytes --]
--- 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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: dvbdev fixes ( /dev/dvb/adapter0demux0 -> /dev/dvb/adapter0/demux0
2003-05-07 9:22 dvbdev fixes ( /dev/dvb/adapter0demux0 -> /dev/dvb/adapter0/demux0 Monchi Abbad
@ 2003-05-07 9:37 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2003-05-07 9:37 UTC (permalink / raw)
To: Monchi Abbad; +Cc: linux-kernel
On Wed, May 07, 2003 at 11:22:22AM +0200, Monchi Abbad wrote:
> 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.
Ooops, that was my typo. Fix looks good, thanks a lot for spotting this.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-07 9:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-07 9:22 dvbdev fixes ( /dev/dvb/adapter0demux0 -> /dev/dvb/adapter0/demux0 Monchi Abbad
2003-05-07 9:37 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®