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
e338e49d
Commit
e338e49d
authored
Dec 18, 2013
by
Bjorn Helgaas
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'eisa' into next
* eisa: EISA: Call put_device() if device_register() fails
parents
1d72e71d
04df008a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
drivers/eisa/eisa-bus.c
drivers/eisa/eisa-bus.c
+3
-1
No files found.
drivers/eisa/eisa-bus.c
View file @
e338e49d
...
@@ -232,8 +232,10 @@ static int __init eisa_init_device(struct eisa_root_device *root,
...
@@ -232,8 +232,10 @@ static int __init eisa_init_device(struct eisa_root_device *root,
static
int
__init
eisa_register_device
(
struct
eisa_device
*
edev
)
static
int
__init
eisa_register_device
(
struct
eisa_device
*
edev
)
{
{
int
rc
=
device_register
(
&
edev
->
dev
);
int
rc
=
device_register
(
&
edev
->
dev
);
if
(
rc
)
if
(
rc
)
{
put_device
(
&
edev
->
dev
);
return
rc
;
return
rc
;
}
rc
=
device_create_file
(
&
edev
->
dev
,
&
dev_attr_signature
);
rc
=
device_create_file
(
&
edev
->
dev
,
&
dev_attr_signature
);
if
(
rc
)
if
(
rc
)
...
...
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