drivers/cdrom/cm206.c: cleanups
PATCH 1/1 drivers/cdrom/cm206.c: cleanups
This patch contains the following 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 Adrian Bunk <[email protected]>
---
This patch was already sent on:
- 26 Jun 2006
drivers/cdrom/cm206.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
drivers/cdrom/cm206.c renamed from drivers/cdrom/cm206.c.old +2 -7
@@ -915,7 +915,7 @@ cd->dsb =wait_dsb (); } -uch bcdbin (unsigned char bcd) +static uch bcdbin (unsigned char bcd) {/* stolen from mcd.c! */ return (bcd >>4 ) *10 + (bcd &0xf ); }
@@ -1533,7 +1533,7 @@ } } -static int __cm206_init (void ) +static int __init __cm206_init (void ) {parse_options ();#if !defined(AUTO_PROBE_MODULE )
@@ -1594,8 +1594,3 @@#endif /* !MODULE */ 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: -*/