Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
07782cec
Commit
07782cec
authored
Nov 06, 2007
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
superhyway: Handle device_register() retval properly.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
0acc729e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/sh/superhyway/superhyway.c
drivers/sh/superhyway/superhyway.c
+4
-3
No files found.
drivers/sh/superhyway/superhyway.c
View file @
07782cec
...
...
@@ -107,16 +107,17 @@ int superhyway_add_devices(struct superhyway_bus *bus,
static
int
__init
superhyway_init
(
void
)
{
struct
superhyway_bus
*
bus
;
int
ret
=
0
;
int
ret
;
device_register
(
&
superhyway_bus_device
);
ret
=
device_register
(
&
superhyway_bus_device
);
if
(
unlikely
(
ret
))
return
ret
;
for
(
bus
=
superhyway_channels
;
bus
->
ops
;
bus
++
)
ret
|=
superhyway_scan_bus
(
bus
);
return
ret
;
}
postcore_initcall
(
superhyway_init
);
static
const
struct
superhyway_device_id
*
...
...
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