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
802bee33
Commit
802bee33
authored
Mar 21, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove special cases from ide_proc
parent
2101dbee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
drivers/ide/ide-proc.c
drivers/ide/ide-proc.c
+7
-14
No files found.
drivers/ide/ide-proc.c
View file @
802bee33
/*
/*
* linux/drivers/ide/ide-proc.c Version 1.0
3 January 2, 1998
* linux/drivers/ide/ide-proc.c Version 1.0
5 Mar 05, 2003
*
*
* Copyright (C) 1997-1998 Mark Lord
* Copyright (C) 1997-1998 Mark Lord
* Copyright (C) 2003 Red Hat <alan@redhat.com>
*/
*/
/*
/*
...
@@ -57,7 +58,6 @@
...
@@ -57,7 +58,6 @@
*/
*/
#include <linux/config.h>
#include <linux/config.h>
#define __NO_VERSION__
#include <linux/module.h>
#include <linux/module.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
...
@@ -365,6 +365,7 @@ static int proc_ide_read_imodel
...
@@ -365,6 +365,7 @@ static int proc_ide_read_imodel
case
ide_cy82c693
:
name
=
"cy82c693"
;
break
;
case
ide_cy82c693
:
name
=
"cy82c693"
;
break
;
case
ide_4drives
:
name
=
"4drives"
;
break
;
case
ide_4drives
:
name
=
"4drives"
;
break
;
case
ide_pmac
:
name
=
"mac-io"
;
break
;
case
ide_pmac
:
name
=
"mac-io"
;
break
;
case
ide_pc9800
:
name
=
"pc9800"
;
break
;
default:
name
=
"(unknown)"
;
break
;
default:
name
=
"(unknown)"
;
break
;
}
}
len
=
sprintf
(
page
,
"%s
\n
"
,
name
);
len
=
sprintf
(
page
,
"%s
\n
"
,
name
);
...
@@ -568,14 +569,10 @@ int proc_ide_read_capacity
...
@@ -568,14 +569,10 @@ int proc_ide_read_capacity
(
char
*
page
,
char
**
start
,
off_t
off
,
int
count
,
int
*
eof
,
void
*
data
)
(
char
*
page
,
char
**
start
,
off_t
off
,
int
count
,
int
*
eof
,
void
*
data
)
{
{
ide_drive_t
*
drive
=
(
ide_drive_t
*
)
data
;
ide_drive_t
*
drive
=
(
ide_drive_t
*
)
data
;
ide_driver_t
*
driver
=
(
ide_driver_t
*
)
drive
->
driver
;
int
len
;
int
len
;
if
(
!
driver
)
len
=
sprintf
(
page
,
"%llu
\n
"
,
len
=
sprintf
(
page
,
"(none)
\n
"
);
(
long
long
)
(
DRIVER
(
drive
)
->
capacity
(
drive
)));
else
len
=
sprintf
(
page
,
"%llu
\n
"
,
(
long
long
)
((
ide_driver_t
*
)
drive
->
driver
)
->
capacity
(
drive
));
PROC_IDE_READ_RETURN
(
page
,
start
,
off
,
count
,
eof
,
len
);
PROC_IDE_READ_RETURN
(
page
,
start
,
off
,
count
,
eof
,
len
);
}
}
...
@@ -620,10 +617,7 @@ int proc_ide_read_driver
...
@@ -620,10 +617,7 @@ int proc_ide_read_driver
ide_driver_t
*
driver
=
drive
->
driver
;
ide_driver_t
*
driver
=
drive
->
driver
;
int
len
;
int
len
;
if
(
!
driver
)
len
=
sprintf
(
page
,
"%s version %s
\n
"
,
len
=
sprintf
(
page
,
"(none)
\n
"
);
else
len
=
sprintf
(
page
,
"%s version %s
\n
"
,
driver
->
name
,
driver
->
version
);
driver
->
name
,
driver
->
version
);
PROC_IDE_READ_RETURN
(
page
,
start
,
off
,
count
,
eof
,
len
);
PROC_IDE_READ_RETURN
(
page
,
start
,
off
,
count
,
eof
,
len
);
}
}
...
@@ -775,8 +769,7 @@ void destroy_proc_ide_device(ide_hwif_t *hwif, ide_drive_t *drive)
...
@@ -775,8 +769,7 @@ void destroy_proc_ide_device(ide_hwif_t *hwif, ide_drive_t *drive)
ide_driver_t
*
driver
=
drive
->
driver
;
ide_driver_t
*
driver
=
drive
->
driver
;
if
(
drive
->
proc
)
{
if
(
drive
->
proc
)
{
if
(
driver
)
ide_remove_proc_entries
(
drive
->
proc
,
driver
->
proc
);
ide_remove_proc_entries
(
drive
->
proc
,
driver
->
proc
);
ide_remove_proc_entries
(
drive
->
proc
,
generic_drive_entries
);
ide_remove_proc_entries
(
drive
->
proc
,
generic_drive_entries
);
remove_proc_entry
(
drive
->
name
,
proc_ide_root
);
remove_proc_entry
(
drive
->
name
,
proc_ide_root
);
remove_proc_entry
(
drive
->
name
,
hwif
->
proc
);
remove_proc_entry
(
drive
->
name
,
hwif
->
proc
);
...
...
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