[TRIVIAL PATCH 2.5.47] Fix char/raw.c to build as module

From: Bob Miller (rem@osdl.org)
Date: Wed Nov 13 2002 - 17:25:54 EST


Small fixes that lets the raw driver be built as a module.

diff -Nru a/drivers/char/raw.c b/drivers/char/raw.c
--- a/drivers/char/raw.c Wed Nov 13 14:09:57 2002
+++ b/drivers/char/raw.c Wed Nov 13 14:09:57 2002
@@ -103,7 +103,7 @@
 {
         struct block_device *bdev = filp->private_data;
 
- return blkdev_ioctl(bdev->bd_inode, NULL, command, arg);
+ return ioctl_by_bdev(bdev->bd_inode, command, arg);
 }
 
 /*
@@ -241,3 +241,4 @@
 
 module_init(raw_init);
 module_exit(raw_exit);
+MODULE_LICENSE("GPL");
 

-- 
Bob Miller					Email: rem@osdl.org
Open Source Development Lab			Phone: 503.626.2455 Ext. 17
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:31 EST