Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9c034d86
Commit
9c034d86
authored
Aug 30, 2003
by
Bartlomiej Zolnierkiewicz
Committed by
Linus Torvalds
Aug 30, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] kill ide_module_t
parent
b3adc105
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
25 deletions
+4
-25
drivers/ide/ide-probe.c
drivers/ide/ide-probe.c
+1
-8
drivers/ide/ide.c
drivers/ide/ide.c
+2
-2
include/linux/ide.h
include/linux/ide.h
+1
-15
No files found.
drivers/ide/ide-probe.c
View file @
9c034d86
...
@@ -1298,13 +1298,6 @@ int hwif_init (ide_hwif_t *hwif)
...
@@ -1298,13 +1298,6 @@ int hwif_init (ide_hwif_t *hwif)
EXPORT_SYMBOL
(
hwif_init
);
EXPORT_SYMBOL
(
hwif_init
);
int
ideprobe_init
(
void
);
static
ide_module_t
ideprobe_module
=
{
IDE_PROBE_MODULE
,
ideprobe_init
,
NULL
};
int
ideprobe_init
(
void
)
int
ideprobe_init
(
void
)
{
{
unsigned
int
index
;
unsigned
int
index
;
...
@@ -1336,7 +1329,7 @@ int ideprobe_init (void)
...
@@ -1336,7 +1329,7 @@ int ideprobe_init (void)
}
}
}
}
if
(
!
ide_probe
)
if
(
!
ide_probe
)
ide_probe
=
&
ideprobe_
module
;
ide_probe
=
&
ideprobe_
init
;
MOD_DEC_USE_COUNT
;
MOD_DEC_USE_COUNT
;
return
0
;
return
0
;
}
}
...
...
drivers/ide/ide.c
View file @
9c034d86
...
@@ -190,7 +190,7 @@ int noautodma = 1;
...
@@ -190,7 +190,7 @@ int noautodma = 1;
EXPORT_SYMBOL
(
noautodma
);
EXPORT_SYMBOL
(
noautodma
);
i
de_module_t
*
ide_probe
;
i
nt
(
*
ide_probe
)(
void
)
;
/*
/*
* This is declared extern in ide.h, for access by other IDE modules:
* This is declared extern in ide.h, for access by other IDE modules:
...
@@ -448,7 +448,7 @@ void ide_probe_module (void)
...
@@ -448,7 +448,7 @@ void ide_probe_module (void)
(
void
)
request_module
(
"ide-probe-mod"
);
(
void
)
request_module
(
"ide-probe-mod"
);
#endif
/* (CONFIG_KMOD) && (CONFIG_BLK_DEV_IDE_MODULE) */
#endif
/* (CONFIG_KMOD) && (CONFIG_BLK_DEV_IDE_MODULE) */
}
else
{
}
else
{
(
void
)
ide_probe
->
init
();
(
void
)
ide_probe
();
}
}
}
}
...
...
include/linux/ide.h
View file @
9c034d86
...
@@ -1242,20 +1242,6 @@ typedef struct ide_driver_s {
...
@@ -1242,20 +1242,6 @@ typedef struct ide_driver_s {
extern
int
generic_ide_ioctl
(
struct
block_device
*
,
unsigned
,
unsigned
long
);
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
{
typedef
struct
ide_devices_s
{
char
name
[
4
];
/* hdX */
char
name
[
4
];
/* hdX */
unsigned
attached
:
1
;
/* native */
unsigned
attached
:
1
;
/* native */
...
@@ -1273,7 +1259,7 @@ typedef struct ide_devices_s {
...
@@ -1273,7 +1259,7 @@ typedef struct ide_devices_s {
*/
*/
#ifndef _IDE_C
#ifndef _IDE_C
extern
ide_hwif_t
ide_hwifs
[];
/* master data repository */
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
*
idedisk
;
extern
ide_devices_t
*
idecd
;
extern
ide_devices_t
*
idecd
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment