Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7adc28ae authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

[PATCH] drivers/cdrom/cm206.c: cleanups



- make __cm206_init() __init (required since it calls
  the __init cm206_init())
- make the needlessly global bcdbin() static
- remove a comment with an obsolete compile command

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7b2baa1f
Loading
Loading
Loading
Loading
+2 −7
Original line number Original line Diff line number Diff line
@@ -914,7 +914,7 @@ static void seek(int lba)
	cd->dsb = wait_dsb();
	cd->dsb = wait_dsb();
}
}


uch bcdbin(unsigned char bcd)
static uch bcdbin(unsigned char bcd)
{				/* stolen from mcd.c! */
{				/* stolen from mcd.c! */
	return (bcd >> 4) * 10 + (bcd & 0xf);
	return (bcd >> 4) * 10 + (bcd & 0xf);
}
}
@@ -1532,7 +1532,7 @@ static void __init parse_options(void)
	}
	}
}
}


static int __cm206_init(void)
static int __init __cm206_init(void)
{
{
	parse_options();
	parse_options();
#if !defined(AUTO_PROBE_MODULE)
#if !defined(AUTO_PROBE_MODULE)
@@ -1593,8 +1593,3 @@ __setup("cm206=", cm206_setup);
#endif				/* !MODULE */
#endif				/* !MODULE */
MODULE_ALIAS_BLOCKDEV_MAJOR(CM206_CDROM_MAJOR);
MODULE_ALIAS_BLOCKDEV_MAJOR(CM206_CDROM_MAJOR);
/*
 * Local variables:
 * compile-command: "gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h  -c -o cm206.o cm206.c"
 * End:
 */