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
64ba4683
Commit
64ba4683
authored
Jul 03, 2003
by
Adam Belay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PNP] Fix manual resource setting API
This patch corrects a trivial thinko in the manual resource api.
parent
8a60bbfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
drivers/pnp/manager.c
drivers/pnp/manager.c
+4
-5
No files found.
drivers/pnp/manager.c
View file @
64ba4683
...
...
@@ -400,25 +400,24 @@ int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table * res,
dev
->
res
=
*
res
;
if
(
!
(
mode
&
PNP_CONFIG_FORCE
))
{
for
(
i
=
0
;
i
<
PNP_MAX_PORT
;
i
++
)
{
if
(
pnp_check_port
(
dev
,
i
))
if
(
!
pnp_check_port
(
dev
,
i
))
goto
fail
;
}
for
(
i
=
0
;
i
<
PNP_MAX_MEM
;
i
++
)
{
if
(
pnp_check_mem
(
dev
,
i
))
if
(
!
pnp_check_mem
(
dev
,
i
))
goto
fail
;
}
for
(
i
=
0
;
i
<
PNP_MAX_IRQ
;
i
++
)
{
if
(
pnp_check_irq
(
dev
,
i
))
if
(
!
pnp_check_irq
(
dev
,
i
))
goto
fail
;
}
for
(
i
=
0
;
i
<
PNP_MAX_DMA
;
i
++
)
{
if
(
pnp_check_dma
(
dev
,
i
))
if
(
!
pnp_check_dma
(
dev
,
i
))
goto
fail
;
}
}
up
(
&
pnp_res_mutex
);
pnp_auto_config_dev
(
dev
);
kfree
(
bak
);
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