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
01225f82
Commit
01225f82
authored
Feb 19, 2004
by
Bartlomiej Zolnierkiewicz
Committed by
Linus Torvalds
Feb 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] kill default_shutdown() and ide_drive_t->shutdown
parent
bd877aaf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
19 deletions
+2
-19
drivers/ide/ide.c
drivers/ide/ide.c
+2
-18
include/linux/ide.h
include/linux/ide.h
+0
-1
No files found.
drivers/ide/ide.c
View file @
01225f82
...
...
@@ -642,10 +642,9 @@ void ide_unregister (unsigned int index)
drive
=
&
hwif
->
drives
[
unit
];
if
(
!
drive
->
present
)
continue
;
if
(
drive
->
usage
)
goto
abort
;
if
(
DRIVER
(
drive
)
->
shutdown
(
drive
))
if
(
drive
->
usage
||
DRIVER
(
drive
)
->
busy
)
goto
abort
;
drive
->
dead
=
1
;
}
hwif
->
present
=
0
;
...
...
@@ -2169,20 +2168,6 @@ static int default_cleanup (ide_drive_t *drive)
return
ide_unregister_subdriver
(
drive
);
}
/*
* Check if we can unregister the subdriver. Called with the
* request lock held.
*/
static
int
default_shutdown
(
ide_drive_t
*
drive
)
{
if
(
drive
->
usage
||
DRIVER
(
drive
)
->
busy
)
{
return
1
;
}
drive
->
dead
=
1
;
return
0
;
}
/*
* Default function to use for the cache flush operation. This
* must be replaced for disk devices (see ATA specification
...
...
@@ -2259,7 +2244,6 @@ static ide_startstop_t default_start_power_step(ide_drive_t *drive,
static
void
setup_driver_defaults
(
ide_driver_t
*
d
)
{
if
(
d
->
cleanup
==
NULL
)
d
->
cleanup
=
default_cleanup
;
if
(
d
->
shutdown
==
NULL
)
d
->
shutdown
=
default_shutdown
;
if
(
d
->
flushcache
==
NULL
)
d
->
flushcache
=
default_flushcache
;
if
(
d
->
do_request
==
NULL
)
d
->
do_request
=
default_do_request
;
if
(
d
->
end_request
==
NULL
)
d
->
end_request
=
default_end_request
;
...
...
include/linux/ide.h
View file @
01225f82
...
...
@@ -1160,7 +1160,6 @@ typedef struct ide_driver_s {
unsigned
busy
:
1
;
unsigned
supports_dsc_overlap
:
1
;
int
(
*
cleanup
)(
ide_drive_t
*
);
int
(
*
shutdown
)(
ide_drive_t
*
);
int
(
*
flushcache
)(
ide_drive_t
*
);
ide_startstop_t
(
*
do_request
)(
ide_drive_t
*
,
struct
request
*
,
sector_t
);
int
(
*
end_request
)(
ide_drive_t
*
,
int
,
int
);
...
...
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