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
Kirill Smelkov
linux
Commits
3a97fde4
Commit
3a97fde4
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_register()
parent
9c034d86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
+5
-16
drivers/ide/ide.c
drivers/ide/ide.c
+5
-16
No files found.
drivers/ide/ide.c
View file @
3a97fde4
...
...
@@ -1041,21 +1041,6 @@ int ide_register_hw (hw_regs_t *hw, ide_hwif_t **hwifp)
EXPORT_SYMBOL
(
ide_register_hw
);
/*
* Compatibility function with existing drivers. If you want
* something different, use the function above.
*/
int
ide_register
(
int
arg1
,
int
arg2
,
int
irq
)
{
hw_regs_t
hw
;
ide_init_hwif_ports
(
&
hw
,
(
unsigned
long
)
arg1
,
(
unsigned
long
)
arg2
,
NULL
);
hw
.
irq
=
irq
;
return
ide_register_hw
(
&
hw
,
NULL
);
}
EXPORT_SYMBOL
(
ide_register
);
/*
* Locks for IDE setting functionality
*/
...
...
@@ -1654,11 +1639,15 @@ int generic_ide_ioctl(struct block_device *bdev, unsigned int cmd,
case
HDIO_SCAN_HWIF
:
{
hw_regs_t
hw
;
int
args
[
3
];
if
(
!
capable
(
CAP_SYS_RAWIO
))
return
-
EACCES
;
if
(
copy_from_user
(
args
,
(
void
*
)
arg
,
3
*
sizeof
(
int
)))
return
-
EFAULT
;
if
(
ide_register
(
args
[
0
],
args
[
1
],
args
[
2
])
==
-
1
)
ide_init_hwif_ports
(
&
hw
,
(
unsigned
long
)
args
[
0
],
(
unsigned
long
)
args
[
1
],
NULL
);
hw
.
irq
=
args
[
2
];
if
(
ide_register_hw
(
&
hw
,
NULL
)
==
-
1
)
return
-
EIO
;
return
0
;
}
...
...
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