Commit 0c82d539 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] isp16 missing initcalls

 * isp16_init() should be an initcall in non-modular case - it's not
   called directly anymore (not since 2.5.1-pre2). 
 * isp16_init() and isp16_exit() made static, while we are at it.
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 35986038
...@@ -77,10 +77,6 @@ module_param(isp16_cdrom_irq, int, 0); ...@@ -77,10 +77,6 @@ module_param(isp16_cdrom_irq, int, 0);
module_param(isp16_cdrom_dma, int, 0); module_param(isp16_cdrom_dma, int, 0);
module_param(isp16_cdrom_type, charp, 0); module_param(isp16_cdrom_type, charp, 0);
#ifdef MODULE
void isp16_exit(void);
#endif
#define ISP16_IN(p) (outb(isp16_ctrl,ISP16_CTRL_PORT), inb(p)) #define ISP16_IN(p) (outb(isp16_ctrl,ISP16_CTRL_PORT), inb(p))
#define ISP16_OUT(p,b) (outb(isp16_ctrl,ISP16_CTRL_PORT), outb(b,p)) #define ISP16_OUT(p,b) (outb(isp16_ctrl,ISP16_CTRL_PORT), outb(b,p))
...@@ -112,7 +108,7 @@ __setup("isp16=", isp16_setup); ...@@ -112,7 +108,7 @@ __setup("isp16=", isp16_setup);
* ISP16 initialisation. * ISP16 initialisation.
* *
*/ */
int __init isp16_init(void) static int __init isp16_init(void)
{ {
u_char expected_drive; u_char expected_drive;
...@@ -366,15 +362,13 @@ isp16_cdi_config(int base, u_char drive_type, int irq, int dma) ...@@ -366,15 +362,13 @@ isp16_cdi_config(int base, u_char drive_type, int irq, int dma)
return 0; return 0;
} }
void __exit isp16_exit(void) static void __exit isp16_exit(void)
{ {
release_region(ISP16_IO_BASE, ISP16_IO_SIZE); release_region(ISP16_IO_BASE, ISP16_IO_SIZE);
printk(KERN_INFO "ISP16: module released.\n"); printk(KERN_INFO "ISP16: module released.\n");
} }
#ifdef MODULE
module_init(isp16_init); module_init(isp16_init);
#endif
module_exit(isp16_exit); module_exit(isp16_exit);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -70,5 +70,3 @@ ...@@ -70,5 +70,3 @@
#define ISP16_IO_BASE 0xF8D #define ISP16_IO_BASE 0xF8D
#define ISP16_IO_SIZE 5 /* ports used from 0xF8D up to 0xF91 */ #define ISP16_IO_SIZE 5 /* ports used from 0xF8D up to 0xF91 */
int isp16_init(void);
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