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
a6cec28d
Commit
a6cec28d
authored
May 28, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Fix probe error handling in envctrl.c driver.
parent
2e3d689f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
drivers/sbus/char/envctrl.c
drivers/sbus/char/envctrl.c
+17
-3
No files found.
drivers/sbus/char/envctrl.c
View file @
a6cec28d
...
@@ -1053,7 +1053,7 @@ static int __init envctrl_init(void)
...
@@ -1053,7 +1053,7 @@ static int __init envctrl_init(void)
struct
linux_ebus
*
ebus
=
NULL
;
struct
linux_ebus
*
ebus
=
NULL
;
struct
linux_ebus_device
*
edev
=
NULL
;
struct
linux_ebus_device
*
edev
=
NULL
;
struct
linux_ebus_child
*
edev_child
=
NULL
;
struct
linux_ebus_child
*
edev_child
=
NULL
;
int
i
=
0
;
int
err
,
i
=
0
;
for_each_ebus
(
ebus
)
{
for_each_ebus
(
ebus
)
{
for_each_ebusdev
(
edev
,
ebus
)
{
for_each_ebusdev
(
edev
,
ebus
)
{
...
@@ -1108,9 +1108,11 @@ static int __init envctrl_init(void)
...
@@ -1108,9 +1108,11 @@ static int __init envctrl_init(void)
udelay
(
200
);
udelay
(
200
);
/* Register the device as a minor miscellaneous device. */
/* Register the device as a minor miscellaneous device. */
if
(
misc_register
(
&
envctrl_dev
))
{
err
=
misc_register
(
&
envctrl_dev
);
if
(
err
)
{
printk
(
"envctrl: Unable to get misc minor %d
\n
"
,
printk
(
"envctrl: Unable to get misc minor %d
\n
"
,
envctrl_dev
.
minor
);
envctrl_dev
.
minor
);
goto
out_iounmap
;
}
}
/* Note above traversal routine post-incremented 'i' to accommodate
/* Note above traversal routine post-incremented 'i' to accommodate
...
@@ -1125,9 +1127,21 @@ static int __init envctrl_init(void)
...
@@ -1125,9 +1127,21 @@ static int __init envctrl_init(void)
i2c_childlist
[
i
].
addr
,
(
0
==
i
)
?
(
"
\n
"
)
:
(
" "
));
i2c_childlist
[
i
].
addr
,
(
0
==
i
)
?
(
"
\n
"
)
:
(
" "
));
}
}
kernel_thread
(
kenvctrld
,
NULL
,
CLONE_FS
|
CLONE_FILES
);
err
=
kernel_thread
(
kenvctrld
,
NULL
,
CLONE_FS
|
CLONE_FILES
);
if
(
err
)
goto
out_deregister
;
return
0
;
return
0
;
out_deregister:
misc_deregister
(
&
envctrl_dev
);
out_iounmap:
iounmap
(
i2c
);
for
(
i
=
0
;
i
<
ENVCTRL_MAX_CPU
*
2
;
i
++
)
{
if
(
i2c_childlist
[
i
].
tables
)
kfree
(
i2c_childlist
[
i
].
tables
);
}
return
err
;
#else
#else
return
-
ENODEV
;
return
-
ENODEV
;
#endif
#endif
...
...
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