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
ad011f20
Commit
ad011f20
authored
Sep 21, 2003
by
Adam Belay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PNPBIOS] return proper error codes on init failure
parent
2218522a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
drivers/pnp/pnpbios/core.c
drivers/pnp/pnpbios/core.c
+6
-4
No files found.
drivers/pnp/pnpbios/core.c
View file @
ad011f20
...
@@ -484,15 +484,17 @@ int __init pnpbios_init(void)
...
@@ -484,15 +484,17 @@ int __init pnpbios_init(void)
pnpbios_calls_init
(
pnp_bios_install
);
pnpbios_calls_init
(
pnp_bios_install
);
/* read the node info */
/* read the node info */
if
(
pnp_bios_dev_node_info
(
&
node_info
))
{
ret
=
pnp_bios_dev_node_info
(
&
node_info
);
if
(
ret
)
{
printk
(
KERN_ERR
"PnPBIOS: Unable to get node info. Aborting.
\n
"
);
printk
(
KERN_ERR
"PnPBIOS: Unable to get node info. Aborting.
\n
"
);
return
-
EIO
;
return
ret
;
}
}
/* register with the pnp layer */
/* register with the pnp layer */
if
(
pnp_register_protocol
(
&
pnpbios_protocol
))
{
ret
=
pnp_register_protocol
(
&
pnpbios_protocol
);
if
(
ret
)
{
printk
(
KERN_ERR
"PnPBIOS: Unable to register driver. Aborting.
\n
"
);
printk
(
KERN_ERR
"PnPBIOS: Unable to register driver. Aborting.
\n
"
);
return
-
EIO
;
return
ret
;
}
}
/* start the proc interface */
/* start the proc interface */
...
...
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