Commit 5164210d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] drivers_cdrom_sjcd.c check_region() fix

From: Trivial Patch Monkey <trivial@rustcorp.com.au>

From:  Omkhar Arasaratnam <omkhar@rogers.com>
parent e5804aa4
...@@ -1700,7 +1700,7 @@ static int __init sjcd_init(void) ...@@ -1700,7 +1700,7 @@ static int __init sjcd_init(void)
sprintf(sjcd_disk->disk_name, "sjcd"); sprintf(sjcd_disk->disk_name, "sjcd");
sprintf(sjcd_disk->devfs_name, "sjcd"); sprintf(sjcd_disk->devfs_name, "sjcd");
if (check_region(sjcd_base, 4)) { if (!request_region(sjcd_base, 4,"sjcd")) {
printk printk
("SJCD: Init failed, I/O port (%X) is already in use\n", ("SJCD: Init failed, I/O port (%X) is already in use\n",
sjcd_base); sjcd_base);
......
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