Commit 9c034d86 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] kill ide_module_t

parent b3adc105
......@@ -1298,13 +1298,6 @@ int hwif_init (ide_hwif_t *hwif)
EXPORT_SYMBOL(hwif_init);
int ideprobe_init (void);
static ide_module_t ideprobe_module = {
IDE_PROBE_MODULE,
ideprobe_init,
NULL
};
int ideprobe_init (void)
{
unsigned int index;
......@@ -1336,7 +1329,7 @@ int ideprobe_init (void)
}
}
if (!ide_probe)
ide_probe = &ideprobe_module;
ide_probe = &ideprobe_init;
MOD_DEC_USE_COUNT;
return 0;
}
......
......@@ -190,7 +190,7 @@ int noautodma = 1;
EXPORT_SYMBOL(noautodma);
ide_module_t *ide_probe;
int (*ide_probe)(void);
/*
* This is declared extern in ide.h, for access by other IDE modules:
......@@ -448,7 +448,7 @@ void ide_probe_module (void)
(void) request_module("ide-probe-mod");
#endif /* (CONFIG_KMOD) && (CONFIG_BLK_DEV_IDE_MODULE) */
} else {
(void) ide_probe->init();
(void)ide_probe();
}
}
......
......@@ -1242,20 +1242,6 @@ typedef struct ide_driver_s {
extern int generic_ide_ioctl(struct block_device *, unsigned, unsigned long);
/*
* IDE modules.
*/
#define IDE_PROBE_MODULE 1
typedef int (ide_module_init_proc)(void);
typedef struct ide_module_s {
int type;
ide_module_init_proc *init;
void *info;
struct ide_module_s *next;
} ide_module_t;
typedef struct ide_devices_s {
char name[4]; /* hdX */
unsigned attached : 1; /* native */
......@@ -1273,7 +1259,7 @@ typedef struct ide_devices_s {
*/
#ifndef _IDE_C
extern ide_hwif_t ide_hwifs[]; /* master data repository */
extern ide_module_t *ide_probe;
extern int (*ide_probe)(void);
extern ide_devices_t *idedisk;
extern ide_devices_t *idecd;
......
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