Commit b6cfd255 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] raw driver as module (resend)

Originally by Bob Miller <rem@osdl.org>

Allows raw driver to build as module, with GPL license.
parent 664bd62e
...@@ -104,7 +104,7 @@ raw_ioctl(struct inode *inode, struct file *filp, ...@@ -104,7 +104,7 @@ raw_ioctl(struct inode *inode, struct file *filp,
{ {
struct block_device *bdev = filp->private_data; struct block_device *bdev = filp->private_data;
return blkdev_ioctl(bdev->bd_inode, NULL, command, arg); return ioctl_by_bdev(bdev, command, arg);
} }
/* /*
...@@ -242,3 +242,4 @@ static void __exit raw_exit(void) ...@@ -242,3 +242,4 @@ static void __exit raw_exit(void)
module_init(raw_init); module_init(raw_init);
module_exit(raw_exit); module_exit(raw_exit);
MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment