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
fa2b5647
Commit
fa2b5647
authored
Aug 04, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/topic/core' into spi-next
parents
8331c49c
840e9c35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
drivers/spi/spi.c
drivers/spi/spi.c
+0
-2
No files found.
drivers/spi/spi.c
View file @
fa2b5647
...
@@ -345,14 +345,12 @@ static DEFINE_MUTEX(board_lock);
...
@@ -345,14 +345,12 @@ static DEFINE_MUTEX(board_lock);
struct
spi_device
*
spi_alloc_device
(
struct
spi_master
*
master
)
struct
spi_device
*
spi_alloc_device
(
struct
spi_master
*
master
)
{
{
struct
spi_device
*
spi
;
struct
spi_device
*
spi
;
struct
device
*
dev
=
master
->
dev
.
parent
;
if
(
!
spi_master_get
(
master
))
if
(
!
spi_master_get
(
master
))
return
NULL
;
return
NULL
;
spi
=
kzalloc
(
sizeof
(
*
spi
),
GFP_KERNEL
);
spi
=
kzalloc
(
sizeof
(
*
spi
),
GFP_KERNEL
);
if
(
!
spi
)
{
if
(
!
spi
)
{
dev_err
(
dev
,
"cannot alloc spi_device
\n
"
);
spi_master_put
(
master
);
spi_master_put
(
master
);
return
NULL
;
return
NULL
;
}
}
...
...
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